Record Class AlphaReport.Attribution
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaReport.Attribution
- Enclosing class:
AlphaReport
-
Constructor Summary
ConstructorsConstructorDescriptionAttribution(double alphaPerBar, double[] betas, List<String> factorNames, double rSquared) Creates an instance of aAttributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thealphaPerBarrecord component.double[]betas()Returns the value of thebetasrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefactorNamesrecord component.format()final inthashCode()Returns a hash code value for this object.doublerSquared()Returns the value of therSquaredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Attribution
Creates an instance of aAttributionrecord class.- Parameters:
alphaPerBar- the value for thealphaPerBarrecord componentbetas- the value for thebetasrecord componentfactorNames- the value for thefactorNamesrecord componentrSquared- the value for therSquaredrecord component
-
-
Method Details
-
format
-
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. -
alphaPerBar
public double alphaPerBar()Returns the value of thealphaPerBarrecord component.- Returns:
- the value of the
alphaPerBarrecord component
-
betas
public double[] betas()Returns the value of thebetasrecord component.- Returns:
- the value of the
betasrecord component
-
factorNames
-
rSquared
public double rSquared()Returns the value of therSquaredrecord component.- Returns:
- the value of the
rSquaredrecord component
-