LineConstraint.penalty

LineConstraint.penalty(data)[source]

The distance between the current and the target vector.

Returns:

error (float) – The squared difference.