public class Univariate extends Object
| Constructor and Description |
|---|
Univariate()
default constructor.
|
Univariate(RealArray realArray)
creates from data array.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
betainv(double x,
double p,
double q)
betainv ALGORITHM AS 63 APPL.
|
static double |
fact(int n) |
static double |
fbeta(double a,
double b) |
static double |
fgamma(double c) |
double[] |
getArray()
get data points.
|
int |
getBinCount()
get bin count.
|
List<Real2> |
getBinsSortedByFrequency()
gets bin values and frequencies sorted by frequency
each Real2 is x-value, frequency
zero counts are not reported
|
double |
getBinWidth() |
int |
getCount()
get number of data points.
|
RealArray |
getDeviateValues()
get deviate values.
|
int[] |
getHistogramCounts()
return bins for Histogram.
|
IntArray |
getIndexOfBinsSortedByDescendingFrequency()
gets pointers to bins sorted by descending frequency.
|
double |
getMax()
get maximum value.
|
double |
getMean()
get mean value.
|
double |
getMedian()
get median.
|
RealArray |
getMedianBinValuesSortedByFrequency()
this sorts the bins in order of frequency.
|
RealArray |
getMedianXValues()
gets the median xvalues for the bins.
|
double |
getMin()
get minimum value.
|
RealArray |
getNormalizedValues()
get normalized values.
|
static Univariate |
getNormalParams(int count)
get normal parameters
I think...
|
double |
getQuantile(double q)
get quantile.
|
RealRange |
getRange() |
double[] |
getSortedArray()
get sorted data points.
|
double |
getStandardDeviation()
get standard deviation.
|
double |
getStandardError()
get standard error.
|
List<Univariate> |
getUnivariatesForBins() |
double |
getVariance()
get variance.
|
RealArray |
getXValues()
gets the xvalues for the bins.
|
static double |
lnfact(int n) |
static double |
lnfbeta(double a,
double b) |
static double |
lnfgamma(double c) |
static void |
main(String[] args) |
static double |
nCr(int n,
int r) |
static double |
nPr(int n,
int r) |
double |
pchisq(double q,
double df)
chiSquared.
|
static double |
pf(double x,
double df1,
double df2)
betainv ALGORITHM AS 63 APPL.
|
static double |
pnorm(double z,
boolean upper)
normal integral.
|
static double |
pnorm(double x,
boolean upper,
double mu,
double sigma2)
normal integral.
|
static double |
pt(double t,
double df)
T-test.
|
static double |
qnorm(double p)
percentage points of normal distribution.
|
static double |
qnorm(double p,
boolean upper)
percentage points of normal distribution.
|
static double |
qnorm(double p,
boolean upper,
double mu,
double sigma2)
percentage points of normal distribution.
|
static double |
qt(double p,
double ndf,
boolean lower_tail)
Student's t-quantiles.
|
void |
setArray(RealArray realArray)
sets data copies realArray
|
void |
setBinCount(int binCount)
set bin count.
|
static void |
test() |
public Univariate()
public Univariate(RealArray realArray)
realArray - the datapublic void setArray(RealArray realArray)
realArray - the datapublic void setBinCount(int binCount)
binCount - the number of binspublic int getBinCount()
public int getCount()
public double getMin()
public double getMax()
public double getMean()
public double getVariance()
public double getStandardDeviation()
public double getStandardError()
public double[] getArray()
public double[] getSortedArray()
public RealArray getNormalizedValues()
public RealArray getDeviateValues()
public double getQuantile(double q)
q - the value of the quantile (0 =< q =< 1.0) @ not enough pointspublic double getMedian()
public RealArray getXValues()
public RealArray getMedianXValues()
public double getBinWidth()
public RealArray getMedianBinValuesSortedByFrequency()
public IntArray getIndexOfBinsSortedByDescendingFrequency()
public List<Real2> getBinsSortedByFrequency()
public RealRange getRange()
public List<Univariate> getUnivariatesForBins()
public int[] getHistogramCounts()
public static Univariate getNormalParams(int count)
count - number of pointspublic static double qnorm(double p)
p - (0 <= p <= 1)public static double qnorm(double p,
boolean upper)
p - (0 <= p <= 1)upper - if true use upper half (??)public static double qnorm(double p,
boolean upper,
double mu,
double sigma2)
p - (0 <= p <= 1)upper - if true use upper half (??)mu - meansigma2 - the variance(?)public static double pnorm(double z,
boolean upper)
z - upper - if true use upper half (??)public static double pnorm(double x,
boolean upper,
double mu,
double sigma2)
x - upper - if true use upper half (??)mu - meansigma2 - the variance(?)public static double qt(double p,
double ndf,
boolean lower_tail)
p - (0 <= p <= 1)ndf - degrees of freedom >= 1lower_tail - public static double pt(double t,
double df)
t - df - degrees of freedompublic double pchisq(double q,
double df)
q - df - degrees of freedompublic static double betainv(double x,
double p,
double q)
x - p - q - public static double pf(double x,
double df1,
double df2)
x - df1 - df2 - public static void test()
public static double lnfgamma(double c)
public static double lnfbeta(double a,
double b)
public static double fbeta(double a,
double b)
public static double fgamma(double c)
public static double fact(int n)
public static double lnfact(int n)
public static double nCr(int n,
int r)
public static double nPr(int n,
int r)
public static void main(String[] args)
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.