public class TMath extends TMathConstants
| Constructor and Description |
|---|
TMath() |
| Modifier and Type | Method and Description |
|---|---|
static double |
BesselI(int n,
double x) |
static double |
BesselI0(double x) |
static double |
BesselI1(double x) |
static double |
BesselJ0(double x) |
static double |
BesselJ1(double x) |
static double |
BesselK(int n,
double x) |
static double |
BesselK0(double x) |
static double |
BesselK1(double x) |
static double |
BesselY0(double x) |
static double |
BesselY1(double x) |
static double |
Beta(double p,
double q) |
static double |
BetaCf(double x,
double a,
double b) |
static double |
BetaDist(double x,
double p,
double q)
Computes the probability density function of the Beta distribution (the distribution function is computed in
BetaDistI).
|
static double |
BetaDistI(double x,
double p,
double q) |
static double |
BetaIncomplete(double x,
double a,
double b) |
static long |
BinarySearch(double[] array,
int length,
double value)
Binary search in an array of n values to locate value.
|
static long |
BinarySearch(float[] array,
int length,
float value)
Binary search in an array of n values to locate value.
|
static long |
BinarySearch(int[] array,
int length,
int value)
Binary search in an array of n values to locate value.
|
static long |
BinarySearch(long[] array,
int length,
long value)
Binary search in an array of n values to locate value.
|
static long |
BinarySearch(short[] array,
int length,
short value)
Binary search in an array of n values to locate value.
|
static double |
Binomial(int n,
int k) |
static double |
BinomialI(double p,
int n,
int k) |
static double |
BreitWigner(double x,
double mean,
double gamma)
Calculate a Breit Wigner function with mean and gamma.
|
static double |
CauchyDist(double x,
double t,
double s)
Computes the density of Cauchy distribution at point x The Cauchy distribution, also called Lorentzian
distribution, is a continuous distribution describing resonance behavior The mean and standard deviation of the
Cauchy distribution are undefined.
|
static double |
ChisquareQuantile(double p,
double ndf)
Evaluate the quantiles of the chi-squared probability distribution function.
|
static double |
CorrelationCoefficient(double[] x,
double[] y,
double[] w)
Calculate weighted correlation coefficient x y data and weights w as double
|
static double |
Covariance(double[] xx,
double[] yy,
double[] ww)
calculated weighted covariance xx and yy with weights ww
|
static double[] |
Cross(double[] v1,
double[] v2,
double[] out)
Calculate the Cross Product of two vectors:
|
static float[] |
Cross(float[] v1,
float[] v2,
float[] out)
Calculate the Cross Product of two vectors:
|
static double[] |
Difference(double[] a,
double[] b) |
static double[] |
Difference(double[] a,
double[] b,
int length)
computes the difference between vectors
|
static float[] |
Difference(float[] a,
float[] b) |
static float[] |
Difference(float[] a,
float[] b,
int length)
computes the difference between vectors
|
static int[] |
Difference(int[] a,
int[] b) |
static int[] |
Difference(int[] a,
int[] b,
int length)
computes the difference between vectors
|
static long[] |
Difference(long[] a,
long[] b) |
static long[] |
Difference(long[] a,
long[] b,
int length)
computes the difference between vectors
|
static short[] |
Difference(short[] a,
short[] b) |
static short[] |
Difference(short[] a,
short[] b,
int length)
computes the difference between vectors
|
static double |
DiLog(double x)
The DiLogarithm function Code translated by from CERNLIB DILOG function C332
|
static double |
effectiveSampleNumber(double[] ww) |
static double |
Erf(double x)
Computation of the error function erf(x).
|
static double |
Erfc(double x)
Compute the complementary error function erfc(x).
|
static double |
ErfInverse(double x)
returns the inverse error function
|
static double |
Factorial(int n)
Compute factorial(n).
|
static double |
FDist(double F,
double N,
double M) |
static double |
FDistI(double F,
double N,
double M) |
static double |
Freq(double x)
Computation of the normal frequency function freq(x).
|
static double |
GamCf(double a,
double x)
Computation of the incomplete gamma function P(a,x) via its continued fraction representation.
|
static double |
Gamma(double z)
Computation of gamma(z) for all z>0.
|
static double |
Gamma(double a,
double x)
Computation of the normalized lower incomplete gamma function P(a,x) as defined in the Handbook of Mathematical
Functions by Abramowitz and Stegun, formula 6.5.1 on page 260 .
|
static double |
GammaDist(double x,
double gamma,
double mu,
double beta) |
static double |
GamSer(double a,
double x)
Computation of the incomplete gamma function P(a,x) via its series representation.
|
static double |
Gauss(double x,
double mean,
double sigma,
boolean norm)
Calculate a Gaussian function with mean and sigma.
|
static double |
GeometricMean(double[] data) |
static double |
GeometricMean(double[] a,
int length)
geometric_mean = (\Prod_{i=0}^{n-1} \abs{a[i]})^{1/n}
|
static float |
GeometricMean(float[] data) |
static float |
GeometricMean(float[] a,
int length)
geometric_mean = (\Prod_{i=0}^{n-1} \abs{a[i]})^{1/n}
|
static int |
GeometricMean(int[] data) |
static int |
GeometricMean(int[] a,
int length)
geometric_mean = (\Prod_{i=0}^{n-1} \abs{a[i]})^{1/n}
|
static long |
GeometricMean(long[] data) |
static long |
GeometricMean(long[] a,
int length)
geometric_mean = (\Prod_{i=0}^{n-1} \abs{a[i]})^{1/n}
|
static short |
GeometricMean(short[] data) |
static short |
GeometricMean(short[] a,
int length)
geometric_mean = (\Prod_{i=0}^{n-1} \abs{a[i]})^{1/n}
|
static boolean |
IsInside(double xp,
double yp,
int np,
double[] x,
double[] y)
Function which returns true if point xp,yp lies inside the polygon defined by the np points in arrays x and y,
false otherwise NOTE that the polygon must be a closed polygon (1st and last point must be identical).
|
static boolean |
IsInside(float xp,
float yp,
int np,
float[] x,
float[] y)
Function which returns true if point xp,yp lies inside the polygon defined by the np points in arrays x and y,
false otherwise NOTE that the polygon must be a closed polygon (1st and last point must be identical).
|
static boolean |
IsInside(int xp,
int yp,
int np,
int[] x,
int[] y)
Function which returns true if point xp,yp lies inside the polygon defined by the np points in arrays x and y,
false otherwise NOTE that the polygon must be a closed polygon (1st and last point must be identical).
|
static double |
Landau(double x,
double mpv,
double sigma,
boolean norm)
The LANDAU function with mpv(most probable value) and sigma.
|
static double |
LandauI(double x) |
static double |
LaplaceDist(double x,
double alpha,
double beta) |
static double |
LaplaceDistI(double x,
double alpha,
double beta) |
static double |
LnGamma(double z)
Computation of ln[gamma(z)] for all z>0.
|
static long |
LocationMaximum(double[] a,
int length) |
static long |
LocationMaximum(float[] a,
int length) |
static long |
LocationMaximum(int[] a,
int length) |
static long |
LocationMaximum(long[] a,
int length) |
static long |
LocationMinimum(double[] a,
int length) |
static long |
LocationMinimum(float[] a,
int length) |
static long |
LocationMinimum(int[] a,
int length) |
static long |
LocationMinimum(long[] a,
int length) |
static long |
LocationMinimum(short[] a,
int length) |
static double |
LogNormal(double x,
double sigma,
double theta,
double m)
Computes the density of LogNormal distribution at point x.
|
static void |
main(String[] argv) |
static double |
Maximum(double[] data) |
static double |
Maximum(double[] data,
int length) |
static float |
Maximum(float[] data) |
static float |
Maximum(float[] data,
int length) |
static int |
Maximum(int[] data) |
static int |
Maximum(int[] data,
int length) |
static long |
Maximum(long[] data) |
static long |
Maximum(long[] data,
int length) |
static short |
Maximum(short[] data) |
static short |
Maximum(short[] data,
int length) |
static double |
Mean(double[] data) |
static double |
Mean(double[] data,
int length) |
static float |
Mean(float[] data) |
static float |
Mean(float[] data,
int length) |
static int |
Mean(int[] data) |
static int |
Mean(int[] data,
int length) |
static long |
Mean(long[] data) |
static long |
Mean(long[] data,
int length) |
static short |
Mean(short[] data) |
static short |
Mean(short[] data,
int length) |
static double |
Median(double[] data) |
static double |
Median(double[] data,
int length) |
static float |
Median(float[] data) |
static float |
Median(float[] data,
int length) |
static int |
Median(int[] data) |
static int |
Median(int[] data,
int length) |
static long |
Median(long[] data) |
static long |
Median(long[] data,
int length) |
static short |
Median(short[] data) |
static short |
Median(short[] data,
int length) |
static double |
Minimum(double[] data) |
static double |
Minimum(double[] data,
int length) |
static float |
Minimum(float[] data) |
static float |
Minimum(float[] data,
int length) |
static int |
Minimum(int[] data) |
static int |
Minimum(int[] data,
int length) |
static long |
Minimum(long[] data) |
static long |
Minimum(long[] data,
int length) |
static short |
Minimum(short[] data) |
static short |
Minimum(short[] data,
int length) |
static double[] |
Normal2Plane(double[] p1,
double[] p2,
double[] p3,
double[] normal)
Calculate a normal vector of a plane.
|
static float[] |
Normal2Plane(float[] p1,
float[] p2,
float[] p3,
float[] normal)
Calculate a normal vector of a plane.
|
static double |
Normalize(double[] v)
Normalise a vector v in place.
|
static float |
Normalize(float[] v)
Normalise a vector 'v' in place.
|
static double |
NormCross(double[] v1,
double[] v2,
double[] out)
Calculate the Normalized Cross Product of two vectors
|
static float |
NormCross(float[] v1,
float[] v2,
float[] out)
Calculate the Normalized Cross Product of two vectors
|
static double |
NormQuantile(double p)
Computes quantiles for standard normal distribution N(0, 1) at probability p ALGORITHM AS241 APPL.
|
static double |
PeakToPeak(double[] data) |
static double |
PeakToPeak(double[] data,
int length) |
static float |
PeakToPeak(float[] data) |
static float |
PeakToPeak(float[] data,
int length) |
static int |
PeakToPeak(int[] data) |
static int |
PeakToPeak(int[] data,
int length) |
static long |
PeakToPeak(long[] data) |
static long |
PeakToPeak(long[] data,
int length) |
static short |
PeakToPeak(short[] data) |
static short |
PeakToPeak(short[] data,
int length) |
static boolean |
Permute(int n,
int[] a)
Simple recursive algorithm to find the permutations of n natural numbers, not necessarily all distinct adapted
from CERNLIB routine PERMU.
|
static double |
Poisson(double x,
double par)
compute the Poisson distribution function for (x,par) The Poisson PDF is implemented by means of Euler's
Gamma-function (for the factorial), so for all integer arguments it is correct.
|
static double |
PoissonI(double x,
double par)
compute the Poisson distribution function for (x,par) This is a non-smooth function
|
static double |
Prob(double chi2,
int ndf)
Computation of the probability for a certain Chi-squared (chi2) and number of degrees of freedom (ndf).
|
static double |
RMS(double[] data) |
static double |
RMS(double[] data,
int length) |
static float |
RMS(float[] data) |
static float |
RMS(float[] data,
int length) |
static int |
RMS(int[] data) |
static int |
RMS(int[] data,
int length) |
static long |
RMS(long[] data) |
static long |
RMS(long[] data,
int length) |
static short |
RMS(short[] data) |
static short |
RMS(short[] data,
int length) |
static double |
Sinc(double x,
boolean norm)
Calculate the sinc = sin(x)/x function if norm ==true then sinc = sinc(pi*x)/(pi*x) is used
|
static double[] |
Sort(double[] a,
int length,
boolean down)
Sorts the input a array
|
static float[] |
Sort(float[] a,
int length,
boolean down)
Sorts the input a array
|
static int[] |
Sort(int[] a,
int length,
boolean down)
Sorts the input a array
|
static long[] |
Sort(long[] a,
int length,
boolean down)
Sorts the input a array
|
static short[] |
Sort(short[] a,
int length,
boolean down)
Sorts the input a array
|
static double |
StruveH0(double x) |
static double |
StruveH1(double x) |
static double |
StruveL0(double x) |
static double |
StruveL1(double x) |
static double |
Student(double T,
double ndf)
Computes density function for Student's t- distribution (the probability function (integral of density) is
computed in StudentI).
|
static double |
StudentI(double T,
double ndf)
Calculates the cumulative distribution function of Student's t-distribution second parameter stands for number of
degrees of freedom, not for the number of samples if x has Student's t-distribution, the function returns the
probability of x being less than T.
|
static double |
StudentQuantile(double p,
double ndf,
boolean lower_tail) |
static double[] |
Sum(double[] a,
double[] b) |
static double[] |
Sum(double[] a,
double[] b,
int length)
computes the sum of vectors
|
static float[] |
Sum(float[] a,
float[] b) |
static float[] |
Sum(float[] a,
float[] b,
int length)
computes the sum of vectors
|
static int[] |
Sum(int[] a,
int[] b) |
static int[] |
Sum(int[] a,
int[] b,
int length)
computes the sum of vectors
|
static long[] |
Sum(long[] a,
long[] b) |
static long[] |
Sum(long[] a,
long[] b,
int length)
computes the sum of vectors
|
static short[] |
Sum(short[] a,
short[] b) |
static short[] |
Sum(short[] a,
short[] b,
int length)
computes the sum of vectors
|
static double |
Variance(double[] aa,
double[] ww) |
static double |
Vavilov(double x,
double kappa,
double beta2) |
protected static double |
VavilovDenEval(double rlam,
double[] AC,
double[] HC,
int itype)
Internal function, called by Vavilov and VavilovSet
|
static double |
VavilovI(double x,
double kappa,
double beta2) |
static void |
VavilovSet(double rkappa,
double beta2,
boolean mode,
double[] WCM,
double[] AC,
double[] HC,
int[] itype,
int[] npt)
Internal function, called by Vavilov and VavilovI
|
Abs, Abs, Abs, Abs, Abs, ACos, ASin, ATan, ATan2, C, Ccgs, Ceil, CeilNint, Cos, CosH, CUncertainty, DegToRad, E, EulerGamma, Even, Exp, Finite, Floor, FloorNint, G, Gcgs, GhbarC, GhbarCUncertainty, Gn, GnUncertainty, GUncertainty, H, Hbar, Hbarcgs, HbarUncertainty, HC, HCcgs, Hcgs, HUncertainty, Hypot, Hypot, InvPi, IsNaN, K, Kcgs, KUncertainty, Ldexp, Ln10, Log, Log10, Log2, Log2, LogE, Max, Max, Max, Max, Max, Min, Min, Min, Min, Min, MWair, Na, NaUncertainty, NextPrime, Nint, Nint, Odd, Pi, PiOver2, PiOver4, Power, Qe, QeUncertainty, R, RadToDeg, Range, Range, Range, Range, Rgair, RUncertainty, Sigma, SigmaUncertainty, Sign, Sign, Sign, Sign, Sign, Sin, SinH, Sqr, Sqrt, Sqrt2, Tan, TanH, TwoPipublic static double BesselI(int n,
double x)
public static double BesselI0(double x)
public static double BesselI1(double x)
public static double BesselJ0(double x)
public static double BesselJ1(double x)
public static double BesselK(int n,
double x)
public static double BesselK0(double x)
public static double BesselK1(double x)
public static double BesselY0(double x)
public static double BesselY1(double x)
public static double Beta(double p,
double q)
public static double BetaCf(double x,
double a,
double b)
public static double BetaDist(double x,
double p,
double q)
x - input valuep - p parameter of beta functionq - q parameter of beta functionpublic static double BetaDistI(double x,
double p,
double q)
public static double BetaIncomplete(double x,
double a,
double b)
public static long BinarySearch(double[] array,
int length,
double value)
array - input vectorlength - <= data.length elements to be usedvalue - to be searchedpublic static long BinarySearch(float[] array,
int length,
float value)
array - input vectorlength - <= data.length elements to be usedvalue - to be searchedpublic static long BinarySearch(int[] array,
int length,
int value)
array - input vectorlength - <= data.length elements to be usedvalue - to be searchedpublic static long BinarySearch(long[] array,
int length,
long value)
array - input vectorlength - <= data.length elements to be usedvalue - to be searchedpublic static long BinarySearch(short[] array,
int length,
short value)
array - input vectorlength - <= data.length elements to be usedvalue - to be searchedpublic static double Binomial(int n,
int k)
public static double BinomialI(double p,
int n,
int k)
public static double BreitWigner(double x,
double mean,
double gamma)
x - input parametermean - centre of distributiongamma - width of distributionpublic static double CauchyDist(double x,
double t,
double s)
x - input valuet - the location parameters - the scale parameterpublic static double ChisquareQuantile(double p,
double ndf)
p - the probability value, at which the quantile is computedndf - number of degrees of freedompublic static double CorrelationCoefficient(double[] x,
double[] y,
double[] w)
x - input vector 1y - input vector 2w - wheights weight vectorpublic static double Covariance(double[] xx,
double[] yy,
double[] ww)
xx - input vector 1yy - input vector 2ww - weightspublic static double[] Cross(double[] v1,
double[] v2,
double[] out)
v1 - input vector1v2 - input vector2out - output vectorpublic static float[] Cross(float[] v1,
float[] v2,
float[] out)
v1 - input vector1v2 - input vector2out - output vectorpublic static double[] Difference(double[] a,
double[] b)
public static double[] Difference(double[] a,
double[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static float[] Difference(float[] a,
float[] b)
public static float[] Difference(float[] a,
float[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static int[] Difference(int[] a,
int[] b)
public static int[] Difference(int[] a,
int[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static long[] Difference(long[] a,
long[] b)
public static long[] Difference(long[] a,
long[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static short[] Difference(short[] a,
short[] b)
public static short[] Difference(short[] a,
short[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static double DiLog(double x)
x - inputpublic static double effectiveSampleNumber(double[] ww)
public static double Erf(double x)
x - inputpublic static double Erfc(double x)
x - input parameterpublic static double ErfInverse(double x)
x - must be <-1<x<1public static double Factorial(int n)
n - input parameterpublic static double FDist(double F,
double N,
double M)
public static double FDistI(double F,
double N,
double M)
public static double Freq(double x)
x - input parameterpublic static double GamCf(double a,
double x)
a - input parameterx - input parameterpublic static double Gamma(double z)
z - input parameterpublic static double Gamma(double a,
double x)
a - input parameterx - input parameterpublic static double GammaDist(double x,
double gamma,
double mu,
double beta)
public static double GamSer(double a,
double x)
a - input parameterx - input parameterpublic static double Gauss(double x,
double mean,
double sigma,
boolean norm)
x - input parametermean - centre of distributionsigma - width of distributionnorm - normalisation factorpublic static double GeometricMean(double[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static double GeometricMean(double[] data)
public static float GeometricMean(float[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static float GeometricMean(float[] data)
public static int GeometricMean(int[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static int GeometricMean(int[] data)
public static long GeometricMean(long[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long GeometricMean(long[] data)
public static short GeometricMean(short[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static short GeometricMean(short[] data)
public static boolean IsInside(double xp,
double yp,
int np,
double[] x,
double[] y)
xp - test point coordinate xyp - test point coordinate ynp - number of polygon edgesx - x coordinates of polygony - y coordinates of polygonpublic static boolean IsInside(float xp,
float yp,
int np,
float[] x,
float[] y)
xp - test point coordinate xyp - test point coordinate ynp - number of polygon edgesx - x coordinates of polygony - y coordinates of polygonpublic static boolean IsInside(int xp,
int yp,
int np,
int[] x,
int[] y)
xp - test point coordinate xyp - test point coordinate ynp - number of polygon edgesx - x coordinates of polygony - y coordinates of polygonpublic static double Landau(double x,
double mpv,
double sigma,
boolean norm)
x - input variablempv - most probable valuesigma - width of distributionnorm - normalisation of distributionpublic static double LandauI(double x)
public static double LaplaceDist(double x,
double alpha,
double beta)
public static double LaplaceDistI(double x,
double alpha,
double beta)
public static double LnGamma(double z)
z - input paramaterpublic static long LocationMaximum(double[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMaximum(float[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMaximum(int[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMaximum(long[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMinimum(double[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMinimum(float[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMinimum(int[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMinimum(long[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static long LocationMinimum(short[] a,
int length)
a - input vectorlength - <= data.length elements to be usedpublic static double LogNormal(double x,
double sigma,
double theta,
double m)
x - input valuesigma - the shape parametertheta - the location parameterm - the scale parameterpublic static void main(String[] argv)
public static double Maximum(double[] data)
public static double Maximum(double[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static float Maximum(float[] data)
public static float Maximum(float[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static int Maximum(int[] data)
public static int Maximum(int[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static long Maximum(long[] data)
public static long Maximum(long[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static short Maximum(short[] data)
public static short Maximum(short[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static double Mean(double[] data)
public static double Mean(double[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static float Mean(float[] data)
public static float Mean(float[] data,
int length)
data - the input vectorlength - of the input vectorpublic static int Mean(int[] data)
public static int Mean(int[] data,
int length)
data - the input vectorlength - of the input vectorpublic static long Mean(long[] data)
public static long Mean(long[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static short Mean(short[] data)
public static short Mean(short[] data,
int length)
data - the input vectorlength - of the input vectorpublic static double Median(double[] data)
public static double Median(double[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static float Median(float[] data)
public static float Median(float[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static int Median(int[] data)
public static int Median(int[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static long Median(long[] data)
public static long Median(long[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static short Median(short[] data)
public static short Median(short[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static double Minimum(double[] data)
public static double Minimum(double[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static float Minimum(float[] data)
public static float Minimum(float[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static int Minimum(int[] data)
public static int Minimum(int[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static long Minimum(long[] data)
public static long Minimum(long[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static short Minimum(short[] data)
public static short Minimum(short[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static double[] Normal2Plane(double[] p1,
double[] p2,
double[] p3,
double[] normal)
p1 - first 3D points belonged the plane to define it.p2 - second 3D points belonged the plane to define it.p3 - third 3D points belonged the plane to define it.normal - Pointer to 3D normal vector (normalised)public static float[] Normal2Plane(float[] p1,
float[] p2,
float[] p3,
float[] normal)
p1 - first 3D points belonged the plane to define it.p2 - second 3D points belonged the plane to define it.p3 - third 3D points belonged the plane to define it.normal - Pointer to 3D normal vector (normalised)public static double Normalize(double[] v)
v - input parameter vectorpublic static float Normalize(float[] v)
v - input parameter vectorpublic static double NormCross(double[] v1,
double[] v2,
double[] out)
v1 - input vector1v2 - input vector2out - output vectorpublic static float NormCross(float[] v1,
float[] v2,
float[] out)
v1 - input vector1v2 - input vector2out - output vectorpublic static double NormQuantile(double p)
p - input valuepublic static double PeakToPeak(double[] data)
public static double PeakToPeak(double[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static float PeakToPeak(float[] data)
public static float PeakToPeak(float[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static int PeakToPeak(int[] data)
public static int PeakToPeak(int[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static long PeakToPeak(long[] data)
public static long PeakToPeak(long[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static short PeakToPeak(short[] data)
public static short PeakToPeak(short[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static boolean Permute(int n,
int[] a)
n - size of input vectora - input vectorpublic static double Poisson(double x,
double par)
x - input valuepar - input parameterpublic static double PoissonI(double x,
double par)
x - input valuepar - input parameterpublic static double Prob(double chi2,
int ndf)
chi2 - inputndf - number of degrees of freedompublic static double RMS(double[] data)
public static double RMS(double[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static float RMS(float[] data)
public static float RMS(float[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static int RMS(int[] data)
public static int RMS(int[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static long RMS(long[] data)
public static long RMS(long[] data,
int length)
data - the input vectorlength - <= d data.length elements to be usedpublic static short RMS(short[] data)
public static short RMS(short[] data,
int length)
data - the input vectorlength - <= data.length elements to be usedpublic static double Sinc(double x,
boolean norm)
x - input parameternorm - normalisation factorpublic static double[] Sort(double[] a,
int length,
boolean down)
a - the input arraylength - <= data.length elements to be useddown - true: ascending , false: descending orderpublic static float[] Sort(float[] a,
int length,
boolean down)
a - the input arraylength - <= data.length elements to be useddown - true: ascending , false: descending orderpublic static int[] Sort(int[] a,
int length,
boolean down)
a - the input arraylength - <= data.length elements to be useddown - true: ascending , false: descending orderpublic static long[] Sort(long[] a,
int length,
boolean down)
a - the input arraylength - <= data.length elements to be useddown - true: ascending , false: descending orderpublic static short[] Sort(short[] a,
int length,
boolean down)
a - the input arraylength - <= data.length elements to be useddown - true: ascending , false: descending orderpublic static double StruveH0(double x)
public static double StruveH1(double x)
public static double StruveL0(double x)
public static double StruveL1(double x)
public static double Student(double T,
double ndf)
T - input valuendf - number of degrees of freedompublic static double StudentI(double T,
double ndf)
T - input valuendf - number of degrees of freedompublic static double StudentQuantile(double p,
double ndf,
boolean lower_tail)
public static double[] Sum(double[] a,
double[] b)
public static double[] Sum(double[] a,
double[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static float[] Sum(float[] a,
float[] b)
public static float[] Sum(float[] a,
float[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static int[] Sum(int[] a,
int[] b)
public static int[] Sum(int[] a,
int[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static long[] Sum(long[] a,
long[] b)
public static long[] Sum(long[] a,
long[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static short[] Sum(short[] a,
short[] b)
public static short[] Sum(short[] a,
short[] b,
int length)
a - input vector ab - input vector blength - minimum length to be taken into accountpublic static double Variance(double[] aa,
double[] ww)
public static double Vavilov(double x,
double kappa,
double beta2)
protected static double VavilovDenEval(double rlam,
double[] AC,
double[] HC,
int itype)
rlam - ???AC - ???HC - ???itype - ???public static double VavilovI(double x,
double kappa,
double beta2)
public static void VavilovSet(double rkappa,
double beta2,
boolean mode,
double[] WCM,
double[] AC,
double[] HC,
int[] itype,
int[] npt)
rkappa - ???beta2 - ???mode - ???WCM - ???AC - ???HC - ???itype - ???npt - ???Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.