|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.analysis.function.rn2r1.UnivariateRealFunction
com.numericalmethod.suanshu.analysis.function.special.Gaussian
public class Gaussian
This computes the Gaussian function.
f(x) = a * exp{-(x - b)2 / 2 / c2}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function |
|---|
Function.EvaluationException |
| Field Summary | |
|---|---|
double |
a
a as in
f(x) = a * exp{-(x - b)2 / 2 / c2} |
double |
b
b as in
f(x) = a * exp{-(x - b)2 / 2 / c2} |
double |
c
c as in
f(x) = a * exp{-(x - b)2 / 2 / c2} |
| Constructor Summary | |
|---|---|
Gaussian()
Construct an instance to compute the standard Gaussian function. |
|
Gaussian(double a,
double b,
double c)
Construct an instance to compute the Gaussian function. |
|
| Method Summary | |
|---|---|
double |
evaluate(double x)
Compute f(x). |
| Methods inherited from class com.numericalmethod.suanshu.analysis.function.rn2r1.UnivariateRealFunction |
|---|
dimension4Domain, dimension4Range, evaluate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final double a
a as in
f(x) = a * exp{-(x - b)2 / 2 / c2}
public final double b
b as in
f(x) = a * exp{-(x - b)2 / 2 / c2}
public final double c
c as in
f(x) = a * exp{-(x - b)2 / 2 / c2}
| Constructor Detail |
|---|
public Gaussian(double a,
double b,
double c)
a - ab - bc - cpublic Gaussian()
f(x) = 1 / sqrt(2 / PI) * exp{- x2 / 2}
| Method Detail |
|---|
public double evaluate(double x)
UnivariateRealFunctionf(x).
evaluate in class UnivariateRealFunctionx - x
f(x)
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||