vec_math
Class StatisticAnalyser

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by vec_math.AbstractAnalyser
                  extended by vec_math.StatisticAnalyser
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, Analyser

public class StatisticAnalyser
extends AbstractAnalyser

Acts on data at a given index.


Nested Class Summary
static class StatisticAnalyser.File
          Use the statistic on file data.
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private  ClassicStatistic[] stat
          For each index processed, we create a statistic.
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
StatisticAnalyser(Map<String,String> prop)
          Creates a new phase dispersion minimizer.
 
Method Summary
 void addValue(VectorG data)
          Adds a data point to the statistic with the given index.
private  ClassicStatistic[] createStatistic(int dim)
          Create the statistic object.
 void deleteValue(VectorG data)
          Removes a data point to the statistic with the given index.
 long[] functionCalls(VectorG[] in)
          We call only basic functions.
 VectorG getStatistic(int index)
          Returns the average of the data, the standard deviation, skewness and kurtoises.
 Object[] metadata(VectorG[] in, VectorG[] proc, VectorG[] visual)
          Minimum string length analysis have no metadata.
 VectorG[] process(VectorG[] in)
          Calls the processing on all indices.
 void reset()
          Default reset does nothing.
 double significance(double theta, VectorG[] data, VectorG[] p, VectorG[] v)
          Estimates the significance of a theta value by simple means of chi-square thesis.
 VectorG[] visualize(VectorG[] in, VectorG[] v)
          Data is already reduced to minimum.
 
Methods inherited from class vec_math.AbstractAnalyser
getBootstrapData, getBootstrapData, getDiminishedData, getDiminishedData, getSyntheticData, getSyntheticData, runningAverage
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Field Detail

stat

private ClassicStatistic[] stat
For each index processed, we create a statistic.

Constructor Detail

StatisticAnalyser

public StatisticAnalyser(Map<String,String> prop)
Creates a new phase dispersion minimizer.

Method Detail

reset

public void reset()
Description copied from class: AbstractAnalyser
Default reset does nothing.

Specified by:
reset in interface Analyser
Overrides:
reset in class AbstractAnalyser

functionCalls

public long[] functionCalls(VectorG[] in)
We call only basic functions.

Returns:
null If unknown.

process

public VectorG[] process(VectorG[] in)
Calls the processing on all indices. The returned array has a length of in[0].dimension. Each vector gives the average, sigma, skew, and kurt

Parameters:
in - The measured data.
Returns:
Processed data of the same length as input data.

visualize

public VectorG[] visualize(VectorG[] in,
                           VectorG[] v)
Data is already reduced to minimum.

Specified by:
visualize in interface Analyser
Overrides:
visualize in class AbstractAnalyser
Parameters:
in - The measured data.
v - The processed data from Analyser.process(vec_math.VectorG[]).
Returns:
Visualizable data derived from processed one.

metadata

public Object[] metadata(VectorG[] in,
                         VectorG[] proc,
                         VectorG[] visual)
Minimum string length analysis have no metadata.

Parameters:
in - The original data, before process.
proc - The processed data from process(vec_math.VectorG[]).
visual - The visualized data from visualize(vec_math.VectorG[], vec_math.VectorG[]).

significance

public double significance(double theta,
                           VectorG[] data,
                           VectorG[] p,
                           VectorG[] v)
Estimates the significance of a theta value by simple means of chi-square thesis. Eq. 5, p 954, only for high n (n=sum(nj)-M).

Parameters:
theta - The value whose significance is to be probed.
data - The original data, before process.
p - The processed data from Analyser.process(vec_math.VectorG[]).
v - The visualized data from Analyser.visualize(vec_math.VectorG[], vec_math.VectorG[]).
Returns:
A significance, 1-false-Alarm probability

getStatistic

public VectorG getStatistic(int index)
Returns the average of the data, the standard deviation, skewness and kurtoises.


addValue

public void addValue(VectorG data)
Adds a data point to the statistic with the given index.


deleteValue

public void deleteValue(VectorG data)
Removes a data point to the statistic with the given index.


createStatistic

private ClassicStatistic[] createStatistic(int dim)
Create the statistic object.