Struct Graph::ConstraintCost

Nested Relationships

This struct is a nested type of Class Graph.

Struct Documentation

struct ConstraintCost

Structure containing the cost and residual information for a single constraint.

Public Members

double cost = {}

The pre-loss-function cost of the constraint, computed as the norm of the residuals

double loss = {}

The final cost of the constraint after any loss functions have been applied

std::vector<double> residuals

The individual residuals for the constraint.