Class PolynomialTableData

java.lang.Object
com.softsynth.jmsl.util.PolynomialTableData

public class PolynomialTableData
extends java.lang.Object
PolynomialTableData
Provides an array of short[] containing data generated by a polynomial.
Input to polynomial is -1..1, output is -1..1, and stored in double[]
Author:
Nick Didkovsky
  • Constructor Summary

    Constructors
    Constructor Description
    PolynomialTableData​(Polynomial poly, int numFrames)  
    PolynomialTableData​(Polynomial poly, int numFrames, boolean renormalize)
    Constructor which fills double[numFrames] with polynomial data -1..1
    numFrames should be an odd number (1024 + 1 is a good table size for example!)
    Note that any Polynomial can plug in here, just make sure output is -1..1 when input ranges from -1..1
  • Method Summary

    Modifier and Type Method Description
    double[] getPeakTableData()  
    double[] getScalerTableData​(double maxValue)
    return double[] containing multiplicative inverses of peak data
    double[] getTableData()  
    static void main​(java.lang.String[] args)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PolynomialTableData

      public PolynomialTableData​(Polynomial poly, int numFrames, boolean renormalize)
      Constructor which fills double[numFrames] with polynomial data -1..1
      numFrames should be an odd number (1024 + 1 is a good table size for example!)
      Note that any Polynomial can plug in here, just make sure output is -1..1 when input ranges from -1..1
    • PolynomialTableData

      public PolynomialTableData​(Polynomial poly, int numFrames)
  • Method Details

    • getTableData

      public double[] getTableData()
    • getPeakTableData

      public double[] getPeakTableData()
    • getScalerTableData

      public double[] getScalerTableData​(double maxValue)
      return double[] containing multiplicative inverses of peak data
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • main

      public static void main​(java.lang.String[] args)