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 enumVarious 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 StringCreates a "description" of anyFlatFieldsinparams.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 DatamakeStat(double[] stats) max()mean()median()min()intGet 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 StringCreates a "binned sparkline" of the givenFlatFields.static Stringsparkline(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:
VisADExceptionRemoteException
-
geometricMean
- Throws:
VisADExceptionRemoteException
-
max
- Throws:
VisADExceptionRemoteException
-
min
- Throws:
VisADExceptionRemoteException
-
median
- Throws:
VisADExceptionRemoteException
-
percentile
- Throws:
VisADExceptionRemoteException
-
variance
- Throws:
VisADExceptionRemoteException
-
kurtosis
- Throws:
VisADExceptionRemoteException
-
standardDeviation
- Throws:
VisADExceptionRemoteException
-
skewness
- Throws:
VisADExceptionRemoteException
-
correlation
- Throws:
VisADExceptionRemoteException
-
makeStat
- Throws:
VisADExceptionRemoteException
-
removeMissingAND
-
describe
Creates a "description" of anyFlatFieldsinparams.This is mostly useful from within the Jython Shell.
Some notes about
params:- Understands
FlatFieldandStringobjects. - Strings must be found within
Statistics.DescribeParams. - Strings control descriptions returned for all fields in
params. FlatFieldandStringobjects may appear in any order.
- Parameters:
params- See description of this method. Ifnullor empty, nothing will happen.- Returns:
- String descriptions of any
FlatFieldobjects inparams, with relevant strings inparamscontrolling 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-FlatFieldobjects to "visualize" with sparklines.- Returns:
- String sparkline for each
FlatFieldinfields. - 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:
VisADExceptionRemoteException
-
parseParams
-