|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
vec_math.AbstractAnalyser
public abstract class AbstractAnalyser
Is a property container and does supply implementation of
visualize(vec_math.VectorG[], vec_math.VectorG[]) and reset().
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
private static Random |
random
We use a random number generator, constructed at class load. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AbstractAnalyser(Map<String,String> prop)
Chain. |
| Method Summary | |
|---|---|
static VectorG[] |
getBootstrapData(VectorG[] in)
Returns a bootstrapped data set from the original data with a default duplication rate of 1/e. |
static VectorG[] |
getBootstrapData(VectorG[] in,
double fraction)
Returns a bootstrapped data set from the original data. |
static VectorG[] |
getDiminishedData(VectorG[] in)
Returns a diminished data set from the original data with a default drop-out rate of 1/e. |
static VectorG[] |
getDiminishedData(VectorG[] in,
double fraction)
For analysers that cannot deal with identical points, we can drop a random fraction of the original data, making the resulting data set smaller. |
static VectorG[] |
getSyntheticData(VectorG[] in,
double adderr)
Generates a synthetic data set out of a measured one. |
static VectorG[] |
getSyntheticData(VectorG[] in,
int[] varid,
int[] errid,
VectorG adderr)
Generates a synthetic data set out of a measured one. |
void |
reset()
Default reset does nothing. |
VectorG[] |
runningAverage(VectorG[] out,
int iy,
int halfwidth)
An implementation of a running average (central, both sides equal) for visualization. |
VectorG[] |
visualize(VectorG[] in,
VectorG[] out)
Default implementation of visualization returns just the output data. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface vec_math.Analyser |
|---|
functionCalls, metadata, process, significance |
| Field Detail |
|---|
private static final Random random
| Constructor Detail |
|---|
protected AbstractAnalyser(Map<String,String> prop)
| Method Detail |
|---|
public VectorG[] visualize(VectorG[] in,
VectorG[] out)
visualize in interface Analyserin - The measured data.out - The processed data from Analyser.process(vec_math.VectorG[]).
public VectorG[] runningAverage(VectorG[] out,
int iy,
int halfwidth)
out - the data vector after analysing.iy - Index of the y-data (which is to be averaged)halfwidth - Half-width of the central running average window.public void reset()
reset in interface Analyserpublic static VectorG[] getBootstrapData(VectorG[] in)
public static VectorG[] getBootstrapData(VectorG[] in,
double fraction)
fraction - The fraction of data points to replace.
public static VectorG[] getSyntheticData(VectorG[] in,
double adderr)
If input is a three-dim vector as x,y,y_err, meaning only y is afflicted with errors, then varid is a single-element array varid[0]=1 and errid[0] = 2.
in - The original data set, 0=x,1=y,2=err_yadderr - offset to error
public static VectorG[] getSyntheticData(VectorG[] in,
int[] varid,
int[] errid,
VectorG adderr)
If input is a three-dim vector as x,y,y_err, meaning only y is afflicted with errors, then varid is a single-element array varid[0]=1 and errid[0] = 2.
in - The original data setvarid - The index in the input vector that should be varied.errid - The index in the input vector that gives the error of the
ith component.adderr - Each index in varid has an additional error that is
added to the value in errid, if original data is too good.public static VectorG[] getDiminishedData(VectorG[] in)
public static VectorG[] getDiminishedData(VectorG[] in,
double fraction)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||