public interface AQCurve
Modifier and Type | Method and Description |
---|---|
double[] |
deTrend(double[] x,
double[] y)
Removes linear trend from incoming data set
|
double |
interpolate(double[] x,
double[] y,
double value)
Interpolates data point at incoming value using natural cubic splines
[link]
|
double |
interpolate(double[] x,
double[] y,
double value,
String method)
Interpolates data point at incoming value based on user-chosen method
[link]
|
double[][] |
kaplanMeier(double[] times,
double[] censor)
Returns KaplanMeier estimator / survival curve and unique event times.
|
double |
logRankTest(double[] time1,
double[] censor1,
double[] time2,
double[] censor2)
Performs logRank test on two populations of survival data.
|
double[] |
sgFilter(double[] x,
int nl,
int nr,
int order)
Returns data smoothed via least-squares polynomial of user-defined order and window of user-defined width.
|
double[] |
sGolay(int left,
int right,
int order)
Calculates SG coefficients
[link]
|
double[] |
smooth(double[] in,
int span)
Smoothes incoming data set via centered running mean of given window length
[link]
|
double[] smooth(double[] in, int span)
in
- a double precision array.span
- integerIllegalArgumentException
- if the incoming array is emptydouble[] sGolay(int left, int right, int order)
left
- , number of points to left of pointright
- , number of points to right of point (window is of length nl + nr +1)order
- , order of polynomial used for smoothingIllegalArgumentException
- if the incoming array is emptydouble[] sgFilter(double[] x, int nl, int nr, int order)
x
- a double precision array.nl
- , number of points to left of pointnr
- , number of points to right of point (window is of length nl + nr +1)order
- , order of polynomial used for smoothingIllegalArgumentException
- if the incoming array is emptydouble[] deTrend(double[] x, double[] y)
x
- a double precision array.y
- a double precision array.IllegalArgumentException
- if the incoming array is emptydouble[][] kaplanMeier(double[] times, double[] censor)
times
- a double precision array. (survival times)censor
- a double precision array
IllegalArgumentException
- if the incoming array is emptydouble logRankTest(double[] time1, double[] censor1, double[] time2, double[] censor2)
time1
- a double precision array.time2
- a double precision array.censor1
- a double precision array.censor2
- a double precision arrayIllegalArgumentException
- if the incoming array is emptydouble interpolate(double[] x, double[] y, double value)
x
- a double precision array.y
- a double precision array.value
- a double precision value at which to interpolateIllegalArgumentException
- if the incoming array is emptydouble interpolate(double[] x, double[] y, double value, String method)
x
- a double precision array.y
- a double precision array.value
- a double precision value at which to interpolatemethod
- , a String indicating interpolation method
IllegalArgumentException
- if the incoming array is empty
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.