Record Class WalkForwardAnalyzer.WalkForwardResult
java.lang.Object
java.lang.Record
com.quantfinlib.backtest.validation.WalkForwardAnalyzer.WalkForwardResult
- Enclosing class:
WalkForwardAnalyzer
public static record WalkForwardAnalyzer.WalkForwardResult(List<WalkForwardAnalyzer.Fold> folds, double[] outOfSampleEquity, PerformanceMetrics outOfSampleMetrics, List<Trade> outOfSampleTrades, double efficiency)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWalkForwardResult(List<WalkForwardAnalyzer.Fold> folds, double[] outOfSampleEquity, PerformanceMetrics outOfSampleMetrics, List<Trade> outOfSampleTrades, double efficiency) Creates an instance of aWalkForwardResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theefficiencyrecord component.final booleanIndicates whether some other object is "equal to" this one.folds()Returns the value of thefoldsrecord component.final inthashCode()Returns a hash code value for this object.double[]Returns the value of theoutOfSampleEquityrecord component.Returns the value of theoutOfSampleMetricsrecord component.Returns the value of theoutOfSampleTradesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WalkForwardResult
public WalkForwardResult(List<WalkForwardAnalyzer.Fold> folds, double[] outOfSampleEquity, PerformanceMetrics outOfSampleMetrics, List<Trade> outOfSampleTrades, double efficiency) Creates an instance of aWalkForwardResultrecord class.- Parameters:
folds- the value for thefoldsrecord componentoutOfSampleEquity- the value for theoutOfSampleEquityrecord componentoutOfSampleMetrics- the value for theoutOfSampleMetricsrecord componentoutOfSampleTrades- the value for theoutOfSampleTradesrecord componentefficiency- the value for theefficiencyrecord 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. -
folds
Returns the value of thefoldsrecord component.- Returns:
- the value of the
foldsrecord component
-
outOfSampleEquity
public double[] outOfSampleEquity()Returns the value of theoutOfSampleEquityrecord component.- Returns:
- the value of the
outOfSampleEquityrecord component
-
outOfSampleMetrics
Returns the value of theoutOfSampleMetricsrecord component.- Returns:
- the value of the
outOfSampleMetricsrecord component
-
outOfSampleTrades
-
efficiency
public double efficiency()Returns the value of theefficiencyrecord component.- Returns:
- the value of the
efficiencyrecord component
-