Class Monomials
java.lang.Object
net.finmath.stochastic.operators.Monomials
Small utility class to generate a list of monomials of a random variable.
This is handy if basis functions are needed that are monomials of a random variable.
-
Constructor Summary
ConstructorsConstructorDescriptionMonomials(int powerStartInclusive, int powerEndExclusive) Create a generator for monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive). -
Method Summary
Modifier and TypeMethodDescriptionof(RandomVariable randomVariable) Create a list of monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive).static List<RandomVariable> of(RandomVariable randomVariable, int powerStartInclusive, int powerEndExclusive) Create a list of monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive).
-
Constructor Details
-
Monomials
public Monomials(int powerStartInclusive, int powerEndExclusive) Create a generator for monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive). IfpowerStartInclusive > powerEndExclusive+1an empty list is returned.- Parameters:
powerStartInclusive- Smallest power.powerEndExclusive- Largest power plus one.
-
-
Method Details
-
of
public static List<RandomVariable> of(RandomVariable randomVariable, int powerStartInclusive, int powerEndExclusive) Create a list of monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive). IfpowerStartInclusive > powerEndExclusive+1an empty list is returned.- Parameters:
randomVariable- The random variable x.powerStartInclusive- Smallest power.powerEndExclusive- Largest power plus one.- Returns:
- The list of monomials.
-
of
Create a list of monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive).- Parameters:
randomVariable- The random variable x.- Returns:
- The list of monomials.
-