Package com.polytechnik.freemoney
Class CommonlyUsedMomentsMonomials
java.lang.Object
com.polytechnik.freemoney.CommonlyUsedMoments
com.polytechnik.freemoney.CommonlyUsedMomentsMonomials
- All Implemented Interfaces:
CommonBasisOperations
An integrator with interal state
WIntegratorMonomials
to calculate commonly used moments in monomials basis.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe basis.double[]
getDFMomentsFromF
(double[] Fmoments) Obtain \(\left<\frac{dF}{dt}Q_k\right>\) moments from \(\left<FQ_k\right>\) moments.double[]
getdtMoments
(int nmoms) An adapter toWIntegratorMonomials.getDtMoments(int)
.double[]
getEDPsi
(double[] psi) Calculate \(\psi/2+d\psi/dx\), an adapter toWIntegratorMonomials.getEDPsi(double[])
.getEmptyWIntegrator
(int ntm, double atau, int nobservables) double[]
getPolynomialWIntegratedDt
(double[] polynomial) Integrate \( \int_{-\infty}^x P(x) \exp(x) dx = R(x) \exp(x) \), then return \( R(x) \), an adapter toWIntegratorMonomials.getPolynomialWIntegratedDt(double[])
.Methods inherited from class com.polytechnik.freemoney.CommonlyUsedMoments
addIHObservationSecondarySampling, addObservationNoBasisShift, getAdPMoments, getdAMoments, getdIHdtMoments, getdPIHdtMoments, getdpMoments, getdtMoments, getdVMoments, getP2dVMoments, getP3dVMoments, getPdAMoments, getPdIHdtMoments, getPdVMoments, getPLast_withoutPOffset, getPOffset, getTdAMoments, getTdpMoments, getTdtMoments, getTdVMoments, getTotalA, getTotalVolume, getTP2dVMoments, getTP3dVMoments, getTPdVMoments, getVdPMoments, getVdtMoments, setInitIHForSecondarySampling, updateBasisToNewTimeReference, updateWithSingleObservation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.polytechnik.freemoney.CommonBasisOperations
getFMomentsFromDF, getPsi2WIntegratedDt
-
Constructor Details
-
CommonlyUsedMomentsMonomials
public CommonlyUsedMomentsMonomials(int n, double atau)
-
-
Method Details
-
getdtMoments
public double[] getdtMoments(int nmoms) An adapter toWIntegratorMonomials.getDtMoments(int)
. -
getEDPsi
public double[] getEDPsi(double[] psi) Calculate \(\psi/2+d\psi/dx\), an adapter toWIntegratorMonomials.getEDPsi(double[])
.- See Also:
-
getPolynomialWIntegratedDt
public double[] getPolynomialWIntegratedDt(double[] polynomial) Integrate \( \int_{-\infty}^x P(x) \exp(x) dx = R(x) \exp(x) \), then return \( R(x) \), an adapter toWIntegratorMonomials.getPolynomialWIntegratedDt(double[])
.- See Also:
-
getABasis
Description copied from interface:CommonBasisOperations
The basis. -
getEmptyWIntegrator
-
getDFMomentsFromF
public double[] getDFMomentsFromF(double[] Fmoments) Description copied from interface:CommonBasisOperations
Obtain \(\left<\frac{dF}{dt}Q_k\right>\) moments from \(\left<FQ_k\right>\) moments.- See Also:
-