Record Class HawkesIntensity.Fit
java.lang.Object
java.lang.Record
com.quantfinlib.microstructure.HawkesIntensity.Fit
- Record Components:
baselineRatePerSec- μexcitation- α, intensity jump per event (per second)decayPerSec- βlogLikelihood- ℓ at the optimumconverged- simplex converged within the iteration cap
- Enclosing class:
HawkesIntensity
public static record HawkesIntensity.Fit(double baselineRatePerSec, double excitation, double decayPerSec, double logLikelihood, int events, boolean converged)
extends Record
A maximum-likelihood calibration.
-
Constructor Summary
ConstructorsConstructorDescriptionFit(double baselineRatePerSec, double excitation, double decayPerSec, double logLikelihood, int events, boolean converged) Creates an instance of aFitrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebaselineRatePerSecrecord component.doubleα/β: expected direct children per event.booleanReturns the value of theconvergedrecord component.doubleReturns the value of thedecayPerSecrecord component.final booleanIndicates whether some other object is "equal to" this one.intevents()Returns the value of theeventsrecord component.doubleReturns the value of theexcitationrecord component.longExcitation half-lifeln 2 / βin nanoseconds.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelogLikelihoodrecord component.toModel()A streaming model with the fitted parameters.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fit
public Fit(double baselineRatePerSec, double excitation, double decayPerSec, double logLikelihood, int events, boolean converged) Creates an instance of aFitrecord class.- Parameters:
baselineRatePerSec- the value for thebaselineRatePerSecrecord componentexcitation- the value for theexcitationrecord componentdecayPerSec- the value for thedecayPerSecrecord componentlogLikelihood- the value for thelogLikelihoodrecord componentevents- the value for theeventsrecord componentconverged- the value for theconvergedrecord component
-
-
Method Details
-
branchingRatio
public double branchingRatio()α/β: expected direct children per event. -
halfLifeNanos
public long halfLifeNanos()Excitation half-lifeln 2 / βin nanoseconds. -
toModel
A streaming model with the fitted parameters. -
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. -
baselineRatePerSec
public double baselineRatePerSec()Returns the value of thebaselineRatePerSecrecord component.- Returns:
- the value of the
baselineRatePerSecrecord component
-
excitation
public double excitation()Returns the value of theexcitationrecord component.- Returns:
- the value of the
excitationrecord component
-
decayPerSec
public double decayPerSec()Returns the value of thedecayPerSecrecord component.- Returns:
- the value of the
decayPerSecrecord component
-
logLikelihood
public double logLikelihood()Returns the value of thelogLikelihoodrecord component.- Returns:
- the value of the
logLikelihoodrecord component
-
events
public int events()Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
converged
-