Package org.ddogleg.optimization
Class ConfigLoss
java.lang.Object
org.ddogleg.optimization.ConfigLoss
Configuration for built in
Loss Functions.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleIf a parameter is needed by the implementation this value is used.Which loss function is to be created -
Constructor Summary
ConstructorsConstructorDescriptionConfigLoss(ConfigLoss.Type type) ConfigLoss(ConfigLoss.Type type, double parameter) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRobust()Returns true if it's configured to use a robust loss function.voidreset()setTo(ConfigLoss src)
-
Field Details
-
type
Which loss function is to be created -
parameter
public double parameterIf a parameter is needed by the implementation this value is used. Starting at 1 or 2 and increasing is often reasonable. By default, this is unassigned and needs to be assigned for most distrbutions.
-
-
Constructor Details
-
ConfigLoss
-
ConfigLoss
-
ConfigLoss
public ConfigLoss()
-
-
Method Details
-
setTo
-
reset
public void reset() -
isRobust
public boolean isRobust()Returns true if it's configured to use a robust loss function. Anything but SQUARED is robust
-