Package org.ddogleg.optimization.loss
Class LossIRLS
java.lang.Object
org.ddogleg.optimization.loss.LossWeighted
org.ddogleg.optimization.loss.LossIRLS
- All Implemented Interfaces:
- FunctionNtoN,- FunctionNtoS,- LossFunction,- LossFunctionGradient
Iteratively Reweighted Least-Squares (IRLS) allows the weights to be recomputed every iteration. At the start
 of an internation the weights are computed and saved. This is to ensure the cost function doesn't change as the
 solver is trying to optimise and it needs to back step.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionFunction that's called when the weights need to be updated.Fields inherited from class org.ddogleg.optimization.loss.LossWeightedweights
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanfixate(double[] residuals) Passes in the current residuals at the start of an iteration.voidsetNumberOfFunctions(int value) Methods inherited from class org.ddogleg.optimization.loss.LossWeightedgetNumberOfFunctions, process, processMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ddogleg.optimization.loss.LossFunctiongetNumOfInputsNMethods inherited from interface org.ddogleg.optimization.loss.LossFunctionGradientgetN
- 
Field Details- 
computeOpFunction that's called when the weights need to be updated. Must be specified.
 
- 
- 
Constructor Details- 
LossIRLSpublic LossIRLS()
 
- 
- 
Method Details- 
fixatepublic boolean fixate(double[] residuals) Description copied from interface:LossFunctionPasses in the current residuals at the start of an iteration. If a loss function is dynamically computed and conditional on the residuals, here's where it should be done- Returns:
- true if the loss function has changed and the cost needs to be recomputed.
 
- 
setNumberOfFunctionspublic void setNumberOfFunctions(int value) - Specified by:
- setNumberOfFunctionsin interface- LossFunction
- Specified by:
- setNumberOfFunctionsin interface- LossFunctionGradient
- Overrides:
- setNumberOfFunctionsin class- LossWeighted
 
 
-