org.rubato.math.arith
Class Folding
java.lang.Object
org.rubato.math.arith.Folding
public class Folding
- extends java.lang.Object
Various functions for folding a set of real numbers to a real interval.
Method Summary |
static void |
computeLowHigh(double[] elements,
double[] low,
double[] high)
|
static double[] |
fold(double[][] elements)
|
static double[] |
fold(double[][] elements,
double[] x,
double[] y,
double[] low,
double[] high)
|
static double |
foldElement(double x,
double value,
double low,
double high)
|
static void |
foldElements(double[] x,
double[] value,
double[] low,
double[] high,
double[] res)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Folding
public Folding()
computeLowHigh
public static void computeLowHigh(double[] elements,
double[] low,
double[] high)
fold
public static double[] fold(double[][] elements)
fold
public static double[] fold(double[][] elements,
double[] x,
double[] y,
double[] low,
double[] high)
foldElement
public static double foldElement(double x,
double value,
double low,
double high)
foldElements
public static void foldElements(double[] x,
double[] value,
double[] low,
double[] high,
double[] res)