Record Class BenchmarkComparison.Result
java.lang.Object
java.lang.Record
com.quantfinlib.backtest.BenchmarkComparison.Result
- Record Components:
alpha- annualized Jensen alpha (risk-free = 0)beta- regression beta vs the benchmarktrackingError- annualized stdev of active returnsinformationRatio- annualized active return / tracking error; 0 when TE is 0 (identical series)upCapture- capture ratio over benchmark-up periods (NaNif none)downCapture- capture ratio over benchmark-down periods (NaNif none)activeReturn- annualized mean of (strategy − benchmark)
- Enclosing class:
BenchmarkComparison
public static record BenchmarkComparison.Result(double alpha, double beta, double trackingError, double informationRatio, double upCapture, double downCapture, double activeReturn)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double alpha, double beta, double trackingError, double informationRatio, double upCapture, double downCapture, double activeReturn) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theactiveReturnrecord component.doublealpha()Returns the value of thealpharecord component.doublebeta()Returns the value of thebetarecord component.doubleReturns the value of thedownCapturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinformationRatiorecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetrackingErrorrecord component.doubleReturns the value of theupCapturerecord component.
-
Constructor Details
-
Result
public Result(double alpha, double beta, double trackingError, double informationRatio, double upCapture, double downCapture, double activeReturn) Creates an instance of aResultrecord class.- Parameters:
alpha- the value for thealpharecord componentbeta- the value for thebetarecord componenttrackingError- the value for thetrackingErrorrecord componentinformationRatio- the value for theinformationRatiorecord componentupCapture- the value for theupCapturerecord componentdownCapture- the value for thedownCapturerecord componentactiveReturn- the value for theactiveReturnrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
alpha
-
beta
-
trackingError
public double trackingError()Returns the value of thetrackingErrorrecord component.- Returns:
- the value of the
trackingErrorrecord component
-
informationRatio
public double informationRatio()Returns the value of theinformationRatiorecord component.- Returns:
- the value of the
informationRatiorecord component
-
upCapture
-
downCapture
public double downCapture()Returns the value of thedownCapturerecord component.- Returns:
- the value of the
downCapturerecord component
-
activeReturn
public double activeReturn()Returns the value of theactiveReturnrecord component.- Returns:
- the value of the
activeReturnrecord component
-