Class Monomials

java.lang.Object
net.finmath.stochastic.operators.Monomials

public class Monomials extends Object
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

    Constructors
    Constructor
    Description
    Monomials(int powerStartInclusive, int powerEndExclusive)
    Create a generator for monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive).
  • Method Summary

    Modifier and Type
    Method
    Description
    of(RandomVariable randomVariable)
    Create a list of monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive).
    of(RandomVariable randomVariable, int powerStartInclusive, int powerEndExclusive)
    Create a list of monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive).

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Monomials

      public Monomials(int powerStartInclusive, int powerEndExclusive)
      Create a generator for monimials \( x^{k} \) with k from powerStartInclusive (inclusive) and powerEndExclusive (exclusive). If powerStartInclusive > powerEndExclusive+1 an 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). If powerStartInclusive > powerEndExclusive+1 an empty list is returned.
      Parameters:
      randomVariable - The random variable x.
      powerStartInclusive - Smallest power.
      powerEndExclusive - Largest power plus one.
      Returns:
      The list of monomials.
    • of

      public List<RandomVariable> of(RandomVariable randomVariable)
      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.