public class VectorMath
extends java.lang.Object
Constructor and Description |
---|
VectorMath() |
Modifier and Type | Method and Description |
---|---|
static boolean |
allEq(double[] e,
double v) |
static boolean |
allEqual(double[] e,
double[] v) |
static boolean |
allEqual(double[] a,
double[] b,
double tol) |
static boolean |
allEqualScaled(double[] a,
double[] b,
double tol) |
static boolean |
allFinite(double[] e) |
static boolean |
allGt(double[] e,
double v) |
static boolean |
allLt(double[] e,
double v) |
static double[] |
as_numeric(java.util.Collection<java.lang.String> ll) |
static double[] |
cumsum(double[] e) |
static int[] |
cumsum(int[] e) |
static double[] |
diff(double[] e) |
static double[] |
diff(double[] e,
int lag) |
static double[] |
diff(double[] e,
int lag,
int order) |
static double |
iqr(double[] e) |
static boolean |
isEqual(double a,
double b,
double tol) |
static boolean |
isEqualScaled(double a,
double b,
double tol) |
static boolean |
isSorted(double[] a,
boolean ascending) |
static double |
max(double[] e) |
static double |
mean(double[] e) |
static double |
median(double[] e)
Get the median
|
static double |
min(double[] e) |
static double[] |
pmax(double[] a,
double[] b) |
static double[] |
pmin(double[] a,
double[] b) |
static double |
quantile(double[] sortedData,
double quantile)
Find quantile given a sorted data of array (Definition 7)
|
static double[] |
quantile(double[] sortedData,
double[] quantile)
Find quantile given a sorted data of array (Definition 7)
|
static double |
quantile0(double[] e,
double quantile)
Find quantile in an array (Definition 7).
|
static double[] |
quantile0(double[] e,
double[] quantile)
Find quantile in an array (Definition 7).
|
static double[] |
range(double[] e) |
static double |
sd(double[] e) |
static double[] |
standardize(double[] x)
Standardize the value in x (i.e., (x - mean(x)) / sd(x))
|
static double |
sum_kahan(double[] e) |
static double |
sum(double[] e) |
static double |
sum(java.util.Map<java.lang.String,java.lang.Integer> e) |
static double[] |
summary(double[] e)
Return summary statistics
|
static java.util.Map<java.lang.String,java.lang.Integer> |
table(double[] e) |
static <T> java.util.Map<java.lang.String,java.lang.Integer> |
table(T[] e) |
static double[] |
vabs(double[] e) |
static double |
var(double[] e) |
static double[] |
vcomp(double[] e) |
static double[] |
vdiv(double[] a,
double b) |
static double[] |
vdiv(double[] a,
double[] b) |
static double[] |
vdiv(double a,
double[] b) |
static double[] |
vexp(double[] e) |
static double[] |
vlog(double[] e) |
static double[] |
vlog1pComps(double[] e) |
static double[] |
vmin(double[] e) |
static double[] |
vmin(double[] a,
double b) |
static double[] |
vmin(double[] a,
double[] b) |
static double[] |
vmin(double a,
double[] b) |
static double[] |
vplus(double[] a,
double b) |
static double[] |
vplus(double[] a,
double[] b) |
static double[] |
vplus(double a,
double[] b) |
static double[] |
vpow(double[] x,
double e) |
static double[] |
vpow(double[] x,
double[] e) |
static double[] |
vpow(double x,
double[] e) |
static double[] |
vpow(double x,
int[] e) |
static double[] |
vsignif(double[] e,
int digits) |
static double[] |
vsq(double[] a) |
static double[] |
vtimes(double[] a,
double b) |
static double[] |
vtimes(double[] a,
double[] b) |
static double[] |
vtimes(double a,
double[] b) |
static int |
which_max(double[] e) |
static int |
which_min(double[] e) |
public static final double[] vpow(double x, double[] e)
public static final double[] vpow(double[] x, double e)
public static final double[] vpow(double[] x, double[] e)
public static final double[] vpow(double x, int[] e)
public static final double[] vplus(double[] a, double[] b)
public static final double[] vplus(double a, double[] b)
public static final double[] vplus(double[] a, double b)
public static final double[] vmin(double[] e)
public static final double[] vmin(double[] a, double[] b)
public static final double[] vmin(double[] a, double b)
public static final double[] vmin(double a, double[] b)
public static final double[] vtimes(double a, double[] b)
public static final double[] vtimes(double[] a, double b)
public static final double[] vtimes(double[] a, double[] b)
public static final double[] vsq(double[] a)
public static final double[] vdiv(double[] a, double b)
public static final double[] vdiv(double a, double[] b)
public static final double[] vdiv(double[] a, double[] b)
public static final double[] vcomp(double[] e)
public static final double[] vabs(double[] e)
public static final double[] vexp(double[] e)
public static final double[] vlog(double[] e)
public static final double[] vlog1pComps(double[] e)
public static final double[] vsignif(double[] e, int digits)
public static final double[] diff(double[] e, int lag, int order)
public static final double[] diff(double[] e, int lag)
public static final double[] diff(double[] e)
public static final boolean allFinite(double[] e)
public static final boolean allLt(double[] e, double v)
public static final boolean allGt(double[] e, double v)
public static final boolean allEq(double[] e, double v)
public static final boolean allEqual(double[] e, double[] v)
public static final double quantile(double[] sortedData, double quantile)
sortedData
- This data is assumed to be presorted! Use quantile0 if you want to use unsorted data!quantile
- must be 0 <= quantile <= 1public static final double[] quantile(double[] sortedData, double[] quantile)
sortedData
- This data is assumed to be presorted!quantile
- public static final double quantile0(double[] e, double quantile)
e
- quantile
- must be 0 <= quantile <= 1public static final double[] quantile0(double[] e, double[] quantile)
e
- quantile
- must be 0 <= quantile <= 1public static final double mean(double[] e)
public static final double[] summary(double[] e)
e
- public static final double median(double[] e)
e
- does not need to be sortedpublic static final double sd(double[] e)
public static final double var(double[] e)
public static final double sum(double[] e)
public static final double sum_kahan(double[] e)
public static final double sum(java.util.Map<java.lang.String,java.lang.Integer> e)
public static final double[] standardize(double[] x)
x
- public static final java.util.Map<java.lang.String,java.lang.Integer> table(double[] e)
public static final <T> java.util.Map<java.lang.String,java.lang.Integer> table(T[] e)
public static final double[] as_numeric(java.util.Collection<java.lang.String> ll)
public static final double[] cumsum(double[] e)
public static final int[] cumsum(int[] e)
public static final double max(double[] e)
public static final double min(double[] e)
public static final int which_max(double[] e)
public static final int which_min(double[] e)
public static final double[] pmax(double[] a, double[] b)
public static final double[] pmin(double[] a, double[] b)
public static final double[] range(double[] e)
public static final double iqr(double[] e)
public static final boolean isEqual(double a, double b, double tol)
public static final boolean isEqualScaled(double a, double b, double tol)
public static final boolean allEqual(double[] a, double[] b, double tol)
public static final boolean allEqualScaled(double[] a, double[] b, double tol)
public static final boolean isSorted(double[] a, boolean ascending)