| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.numerics.Util
public final class Util
A utility class for numerical analysis. This class cannot be subclassed or instantiated because all methods are static.
| Field Summary | |
|---|---|
| static double | defaultNumericalPrecisionThe default precision for numerical analysis. | 
| Method Summary | |
|---|---|
| static int | checkSorting(double[] array)Checks if an array is sorted. | 
| static double | computeAverage(double[] array,
               int start,
               int num)Computes the average value of a subset of an array. | 
| static Function | constantFunction(double _c)Creates a function having a constant value. | 
| static double | evalMath(java.lang.String str)Evalautes a mathematical expression without variables. | 
| static double[][] | functionFill(Function f,
             double start,
             double stop,
             double[][] data)Fills an array with f(x) values. | 
| static double[][] | functionFill(Function f,
             double start,
             double stop,
             int n)Fills an array with f(x) values. | 
| static double[] | getDomain(Function f,
          double a,
          double b,
          int n) | 
| static double | relativePrecision(double epsilon,
                  double result)Method relativePrecision | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final double defaultNumericalPrecision
| Method Detail | 
|---|
public static double relativePrecision(double epsilon,
                                       double result)
epsilon - the absolute errorresult - the result
public static int checkSorting(double[] array)
array - double[]
public static double[] getDomain(Function f,
                                 double a,
                                 double b,
                                 int n)
public static double[][] functionFill(Function f,
                                      double start,
                                      double stop,
                                      int n)
f - Functionstart - doublestop - doublen - int
public static double[][] functionFill(Function f,
                                      double start,
                                      double stop,
                                      double[][] data)
f - Functionstart - doublestop - doubledata - double[][]
public static double computeAverage(double[] array,
                                    int start,
                                    int num)
array - the data to be averagedstart - the index of the first point to be averagednum - the total number of points to be averaged
public static Function constantFunction(double _c)
_c - 
public static double evalMath(java.lang.String str)
str - String
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||