Record Class ExtremeValueTheory.GpdMle
java.lang.Object
java.lang.Record
com.quantfinlib.risk.ExtremeValueTheory.GpdMle
- Enclosing class:
ExtremeValueTheory
public static record ExtremeValueTheory.GpdMle(ExtremeValueTheory.GpdFit fit, double shapeStdError, double scaleStdError, double logLikelihood)
extends Record
A maximum-likelihood GPD fit with asymptotic standard errors
Var ξ̂ = (1+ξ)²/m, Var β̂ = 2β²(1+ξ)/m (Smith 1987).-
Constructor Summary
ConstructorsConstructorDescriptionGpdMle(ExtremeValueTheory.GpdFit fit, double shapeStdError, double scaleStdError, double logLikelihood) Creates an instance of aGpdMlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fit()Returns the value of thefitrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelogLikelihoodrecord component.doubleReturns the value of thescaleStdErrorrecord component.doubleReturns the value of theshapeStdErrorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GpdMle
public GpdMle(ExtremeValueTheory.GpdFit fit, double shapeStdError, double scaleStdError, double logLikelihood) Creates an instance of aGpdMlerecord class.- Parameters:
fit- the value for thefitrecord componentshapeStdError- the value for theshapeStdErrorrecord componentscaleStdError- the value for thescaleStdErrorrecord componentlogLikelihood- the value for thelogLikelihoodrecord 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. -
fit
Returns the value of thefitrecord component.- Returns:
- the value of the
fitrecord component
-
shapeStdError
public double shapeStdError()Returns the value of theshapeStdErrorrecord component.- Returns:
- the value of the
shapeStdErrorrecord component
-
scaleStdError
public double scaleStdError()Returns the value of thescaleStdErrorrecord component.- Returns:
- the value of the
scaleStdErrorrecord component
-
logLikelihood
public double logLikelihood()Returns the value of thelogLikelihoodrecord component.- Returns:
- the value of the
logLikelihoodrecord component
-