public class FunctionFactory extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,Func1D> |
funcionDesk |
static double |
PI_OVER_2 |
Constructor and Description |
---|
FunctionFactory() |
Modifier and Type | Method and Description |
---|---|
static double |
acos(double x)
Fast acos using 8 term polynomial approximation from Abramowitz and Stegun, pg.
|
static double |
asin_4(double x)
Fast asin using 4 term polynomial approximation from Abramowitz and Stegun, pg.
|
static double |
asin(double x)
Fast asin using 8 term polynomial approximation from Abramowitz and Stegun, pg.
|
static double |
atan(double x) |
static double |
atan2(double y,
double x) |
static H1F |
createDebugH1F(int bins) |
static Func1D |
createFunction(int type) |
static H1F |
createH1F(int type,
int bins,
int samples) |
static double |
gauss(double x,
double mean,
double sigma) |
static double |
getRandMinMax(double min,
double max) |
static double |
landau(double x,
double mean,
double sigma) |
static void |
main(String[] args) |
static H1F |
randomGausian(int bins,
double min,
double max,
int stat,
double mean,
double sigma)
generates a histogram with gaussian function
|
static H2F |
randomGausian2D(int bins,
double min,
double max,
int stat,
double mean,
double sigma) |
static void |
registerFunction(Func1D func) |
public static double acos(double x)
Note: Accuracy to within 3 x 10^-8 radians.
x
- public static double asin(double x)
Note: Accuracy to within 3 x 10^-8 radians.
x
- public static double asin_4(double x)
Note: Accuracy to within 7 x 10^-5 radians.
x
- public static void registerFunction(Func1D func)
public static double atan(double x)
public static double atan2(double y, double x)
public static double gauss(double x, double mean, double sigma)
public static double getRandMinMax(double min, double max)
public static double landau(double x, double mean, double sigma)
public static H1F randomGausian(int bins, double min, double max, int stat, double mean, double sigma)
bins
- min
- max
- stat
- mean
- sigma
- public static H2F randomGausian2D(int bins, double min, double max, int stat, double mean, double sigma)
public static H1F createDebugH1F(int bins)
public static H1F createH1F(int type, int bins, int samples)
public static Func1D createFunction(int type)
public static void main(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics