org.intamap.generators
Class ValuesGenerator

java.lang.Object
  extended by org.intamap.generators.ValuesGenerator

public class ValuesGenerator
extends Object

Generates values for statistic predictions or realisations from an interpolate response.

Author:
Richard Jones

Constructor Summary
ValuesGenerator()
           
 
Method Summary
static double[] getMeanValues(InterpolateResponse response)
          Generates an array of mean values from an interpolate response.
static double[] getProbabilityGreaterThanValues(InterpolateResponse response, double value)
          Generates an array of probability greater than values for a given value from the predicted values.
static double[] getQuantileValues(InterpolateResponse response, double level)
          Generates an array of quantile values for a given level from the predicted values.
static ArrayList<double[]> getRealisations(InterpolateResponse response)
          Generates an array of realisations from an interpolate response.
static double[] getVarianceValues(InterpolateResponse response)
          Generates an array of variance values from the predicted values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuesGenerator

public ValuesGenerator()
Method Detail

getMeanValues

public static double[] getMeanValues(InterpolateResponse response)
Generates an array of mean values from an interpolate response.

Parameters:
response - the interpolate response to get values from
Returns:
mean values or null if no mean values were predicted

getProbabilityGreaterThanValues

public static double[] getProbabilityGreaterThanValues(InterpolateResponse response,
                                                       double value)
Generates an array of probability greater than values for a given value from the predicted values.

Parameters:
response - the interpolate response to get values from
value - the greater than value
Returns:
probability greater than values or null if no probability greater than values were predicted for the given value

getQuantileValues

public static double[] getQuantileValues(InterpolateResponse response,
                                         double level)
Generates an array of quantile values for a given level from the predicted values.

Parameters:
response - the interpolate response to get values from
level - the level
Returns:
quantile values or null if no quantile values were predicted for the given level

getRealisations

public static ArrayList<double[]> getRealisations(InterpolateResponse response)
Generates an array of realisations from an interpolate response.

Parameters:
response - the interpolate response to get realisations from
Returns:
realisations or null if no realisations were predicted

getVarianceValues

public static double[] getVarianceValues(InterpolateResponse response)
Generates an array of variance values from the predicted values.

Parameters:
response - the interpolate response to get values from
Returns:
variance values or null if no variance values were predicted