Record Class GridSearchOptimizer.Candidate
java.lang.Object
java.lang.Record
com.quantfinlib.backtest.validation.GridSearchOptimizer.Candidate
- Enclosing class:
GridSearchOptimizer
public static record GridSearchOptimizer.Candidate(Map<String,Double> params, PerformanceMetrics metrics, double objective)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCandidate(Map<String, Double> params, PerformanceMetrics metrics, double objective) Creates an instance of aCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metrics()Returns the value of themetricsrecord component.doubleReturns the value of theobjectiverecord component.params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Candidate
Creates an instance of aCandidaterecord class.- Parameters:
params- the value for theparamsrecord componentmetrics- the value for themetricsrecord componentobjective- the value for theobjectiverecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
params
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
objective
public double objective()Returns the value of theobjectiverecord component.- Returns:
- the value of the
objectiverecord component
-