Class NewcombOperators


  • public class NewcombOperators
    extends Object
    Implementation of the Modified Newcomb Operators.

    From equations 2.7.3 - (12)(13) of the Danielson paper, those operators are defined as:

    4(ρ + σ)Yρ,σn,s =
    2(2s - n)Yρ-1,σn,s+1 + (s - n)Yρ-2,σn,s+2
    - 2(2s + n)Yρ,σ-1n,s-1 - (s+n)Yρ,σ-2n,s-2
    + 2(2ρ + 2σ + 2 + 3n)Yρ-1,σ-1n,s

    Initialization is given by : Y0,0n,s = 1

    Internally, the Modified Newcomb Operators are stored as an array of PolynomialFunction :

    Yρ,σn,s = Pk₀ + Pk₁n + ... + Pkjnj

    where the Pkj are given by

    Pkj = ∑j=0;ρ ajsj

    Author:
    Romain Di Costanzo, Pascal Parraud
    • Method Detail

      • getValue

        public static double getValue​(int rho,
                                      int sigma,
                                      int n,
                                      int s)
        Get the Newcomb operator evaluated at n, s, ρ, σ.

        This method is guaranteed to be thread-safe

        Parameters:
        rho - ρ index
        sigma - σ index
        n - n index
        s - s index
        Returns:
        Yρ,σn,s