Package edu.wisc.ssec.mcidasv.data.hydra
Class Statistics
java.lang.Object
edu.wisc.ssec.mcidasv.data.hydra.Statistics
Used to obtain various commonly used statistics for VisAD
FlatFields
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
Various types of statistics reported by thedescribe(Object...)
"function".static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionCharacters used to create "sparklines".(package private) org.apache.commons.math3.stat.descriptive.DescriptiveStatistics[]
(package private) int[]
(package private) int
(package private) org.apache.commons.math3.stat.correlation.PearsonsCorrelation
(package private) int
(package private) double[][]
(package private) MathType
(package private) double[][]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncorrelation
(FlatField fltFld) static String
Creates a "description" of anyFlatFields
inparams
.int[]
Get the number of non-missing points in each range component.double[][]
Get the original range values.double[][]
Get the range values actually used (missing removed).static Long[]
kurtosis()
private Data
makeStat
(double[] stats) max()
mean()
median()
min()
int
Get the number of points in the domain of theFlatField
.private static EnumSet
<Statistics.DescribeParams> parseParams
(List<String> ps) percentile
(double p) private double[]
removeMissing
(double[] vals) private double[][]
removeMissing
(double[][] vals) private double[][]
removeMissingAND
(double[] vals_x, double[] vals_y) skewness()
static String
Creates a "binned sparkline" of the givenFlatFields
.static String
sparkline
(FlatField field, Statistics s) variance()
-
Field Details
-
CHARS
Characters used to create "sparklines". -
descriptiveStats
org.apache.commons.math3.stat.descriptive.DescriptiveStatistics[] descriptiveStats -
values_x
double[][] values_x -
rngVals
double[][] rngVals -
rngTupLen
int rngTupLen -
numPoints
int numPoints -
numGoodPoints
int[] numGoodPoints -
statType
-
pCorrelation
org.apache.commons.math3.stat.correlation.PearsonsCorrelation pCorrelation
-
-
Constructor Details
-
Statistics
- Throws:
VisADException
-
-
Method Details
-
numPoints
Get the number of points in the domain of theFlatField
.- Returns:
- Number of points.
-
getNumGoodPoints
Get the number of non-missing points in each range component.- Returns:
- Number of non-missing points.
-
getRngVals
Get the original range values.- Returns:
- Original range values.
-
getValues
Get the range values actually used (missing removed).- Returns:
- Range values used.
-
removeMissing
-
removeMissing
-
mean
- Throws:
VisADException
RemoteException
-
geometricMean
- Throws:
VisADException
RemoteException
-
max
- Throws:
VisADException
RemoteException
-
min
- Throws:
VisADException
RemoteException
-
median
- Throws:
VisADException
RemoteException
-
percentile
- Throws:
VisADException
RemoteException
-
variance
- Throws:
VisADException
RemoteException
-
kurtosis
- Throws:
VisADException
RemoteException
-
standardDeviation
- Throws:
VisADException
RemoteException
-
skewness
- Throws:
VisADException
RemoteException
-
correlation
- Throws:
VisADException
RemoteException
-
makeStat
- Throws:
VisADException
RemoteException
-
removeMissingAND
-
describe
Creates a "description" of anyFlatFields
inparams
.This is mostly useful from within the Jython Shell.
Some notes about
params
:- Understands
FlatField
andString
objects. - Strings must be found within
Statistics.DescribeParams
. - Strings control descriptions returned for all fields in
params
. FlatField
andString
objects may appear in any order.
- Parameters:
params
- See description of this method. Ifnull
or empty, nothing will happen.- Returns:
- String descriptions of any
FlatField
objects inparams
, with relevant strings inparams
controlling what shows up in all descriptions. - Throws:
VisADException
- if VisAD had problems.RemoteException
- if VisAD had problems.
- Understands
-
sparkline
Creates a "binned sparkline" of the givenFlatFields
.- Parameters:
fields
-FlatField
objects to "visualize" with sparklines.- Returns:
- String sparkline for each
FlatField
infields
. - Throws:
VisADException
- if VisAD had problems.RemoteException
- if VisAD had problems.- See Also:
-
histogram
- Throws:
VisADException
-
sparkline
public static String sparkline(FlatField field, Statistics s) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
parseParams
-