Package rma.stats.model
Class DoubleRandomSequence
java.lang.Object
rma.stats.model.DoubleRandomSequence
- All Implemented Interfaces:
DoubleRandomTable
Deprecated.
in hec-monolith 1.0. Look for equivalent in package hec.statistics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double val) Deprecated.voidadd(int idx, double val) Deprecated.voidaddAll(double[] valArray) Deprecated.voidaddAll(int idx, double[] valArray) Deprecated.voidclear()Deprecated.clone()Deprecated.doubleget(int idx) Deprecated.double[]getAll()Deprecated.double[]Deprecated.double[]getAllBoundAbsErrorOfMean(double confidence) Deprecated.double[]getAllBoundRelErrorOfMean(double confidence) Deprecated.double[][]getAllConfidenceInterval(double confidence) Deprecated.double[]Deprecated.double[]Deprecated.doublegetAvg()Deprecated.doublegetAvg(int idx) Deprecated.doublegetBoundAbsErrorOfMean(double confidence) Deprecated.doublegetBoundAbsErrorOfMean(int idx, double confidence) Deprecated.doublegetBoundRelErrorOfMean(double confidence) Deprecated.doublegetBoundRelErrorOfMean(int idx, double confidence) Deprecated.double[]getConfidenceInterval(double confidence) Deprecated.double[]getConfidenceInterval(int idx, double confidence) Deprecated.doublegetLast()Deprecated.doublegetStdv()Deprecated.doublegetStdv(int idx) Deprecated.booleanreadBuf(BufferedReader buf) Deprecated.Reads values from buffer readervoidreadDSS(DSSIdentifier dssId) Deprecated.intsize()Deprecated.voidwriteAvgDSS(DSSIdentifier dssId) Deprecated.voidwriteBoundAbsErrorOfMeanDSS(DSSIdentifier dssId, double confidence) Deprecated.voidwriteBoundRelErrorOfMeanDSS(DSSIdentifier dssId, double confidence) Deprecated.booleanwriteBuf(BufferedWriter buf) Deprecated.Writes values to buffer writervoidwriteConfidenceInterval(DSSIdentifier dssId, double confidence) Deprecated.voidwriteDSS(DSSIdentifier dssId) Deprecated.voidwriteStdvDSS(DSSIdentifier dssId) Deprecated.
-
Constructor Details
-
DoubleRandomSequence
public DoubleRandomSequence()Deprecated.
-
-
Method Details
-
size
public int size()Deprecated.- Specified by:
sizein interfaceDoubleRandomTable
-
clear
public void clear()Deprecated.- Specified by:
clearin interfaceDoubleRandomTable
-
clone
Deprecated.- Specified by:
clonein interfaceDoubleRandomTable- Overrides:
clonein classObject
-
writeBuf
Deprecated.Writes values to buffer writer- Specified by:
writeBufin interfaceDoubleRandomTable
-
readBuf
Deprecated.Reads values from buffer reader- Specified by:
readBufin interfaceDoubleRandomTable
-
add
public void add(int idx, double val) Deprecated.- Specified by:
addin interfaceDoubleRandomTable- Parameters:
idx- = index in sequence (1,2,3,..)val- = double value Adds a new element to the sequence of random values and truncates the sequence to that element. Subsequent elements get erased. If idx is out of bonds, it does nothing with one exception: if idx = size+1 it behaves just like addLast.
-
add
public void add(double val) Deprecated.- Parameters:
val- = double value Appends a new element to the the end of the sequence of random values
-
addAll
public void addAll(int idx, double[] valArray) Deprecated.- Parameters:
idx- = index in sequence (1,2,3,..)valArray- = double value Adds new elements to the sequence of random values and truncates the sequence to that element. Subsequent elements get erased. If idx is out of bonds, it does nothing with one exception: if idx = size+1 it behaves just like addLast.
-
addAll
public void addAll(double[] valArray) Deprecated.- Parameters:
valArray- = double value Appends values in the array to the the end of the sequence of random values
-
get
public double get(int idx) Deprecated.- Specified by:
getin interfaceDoubleRandomTable- Parameters:
idx- = index (1,2,3,..)- Returns:
- the element idx of the sequence
-
getLast
public double getLast()Deprecated.- Returns:
- the last element in the sequence
-
getAllIdx
public double[] getAllIdx()Deprecated.- Returns:
- an array with all indices (1,2,3,...)
-
getAll
public double[] getAll()Deprecated.- Specified by:
getAllin interfaceDoubleRandomTable- Returns:
- an array with all elements in the sequence
-
writeDSS
Deprecated.- Specified by:
writeDSSin interfaceDoubleRandomTable- Parameters:
dssId- Writes values to DSS
-
readDSS
Deprecated.- Specified by:
readDSSin interfaceDoubleRandomTable- Parameters:
dssId- Reads values from DSS
-
getAvg
public double getAvg(int idx) Deprecated.- Specified by:
getAvgin interfaceDoubleRandomTable- Parameters:
idx- = index (1,2,3,...)- Returns:
- the average of the first idx elements of the sequence
-
getAvg
public double getAvg()Deprecated.- Specified by:
getAvgin interfaceDoubleRandomTable- Returns:
- the average of all the elements of the sequence
-
getAllAvg
public double[] getAllAvg()Deprecated.- Specified by:
getAllAvgin interfaceDoubleRandomTable- Returns:
- an array with all partial averages (running averages) of the sequence
-
writeAvgDSS
Deprecated.- Specified by:
writeAvgDSSin interfaceDoubleRandomTable- Parameters:
dssId- Writes to DSS running average values
-
getStdv
public double getStdv(int idx) Deprecated.- Specified by:
getStdvin interfaceDoubleRandomTable- Parameters:
idx- = index (1,2,3,...)- Returns:
- the standard deviation of the first idx elements of the sequence
-
getStdv
public double getStdv()Deprecated.- Specified by:
getStdvin interfaceDoubleRandomTable- Returns:
- the standard deviation of all the elements of the sequence
-
getAllStdv
public double[] getAllStdv()Deprecated.- Specified by:
getAllStdvin interfaceDoubleRandomTable- Returns:
- an array with all partial stdvs (running stdvs) of the sequence
-
writeStdvDSS
Deprecated.- Specified by:
writeStdvDSSin interfaceDoubleRandomTable- Parameters:
dssId- Writes to DSS running standard deviation values
-
getBoundAbsErrorOfMean
public double getBoundAbsErrorOfMean(int idx, double confidence) Deprecated.- Specified by:
getBoundAbsErrorOfMeanin interfaceDoubleRandomTable- Parameters:
idx- = index (1,2,3,...)confidence- between zero and one- Returns:
- with the confidence given, a bound to the absolute error of the mean of the first idx elements of the sequence
-
getBoundAbsErrorOfMean
public double getBoundAbsErrorOfMean(double confidence) Deprecated.- Specified by:
getBoundAbsErrorOfMeanin interfaceDoubleRandomTable- Parameters:
confidence- between zero and one- Returns:
- with the confidence given, a bound to the absolute error of the mean of the sequence
-
getAllBoundAbsErrorOfMean
public double[] getAllBoundAbsErrorOfMean(double confidence) Deprecated.- Specified by:
getAllBoundAbsErrorOfMeanin interfaceDoubleRandomTable- Parameters:
confidence- between zero and one- Returns:
- with the confidence given, an array of bounds to the absolute errors of the partial means of the sequence
-
writeBoundAbsErrorOfMeanDSS
Deprecated.- Specified by:
writeBoundAbsErrorOfMeanDSSin interfaceDoubleRandomTable- Parameters:
dssId-confidence- between zero and one Writes to DSS the running bounds of abs error of mean
-
getBoundRelErrorOfMean
public double getBoundRelErrorOfMean(int idx, double confidence) Deprecated.- Specified by:
getBoundRelErrorOfMeanin interfaceDoubleRandomTable- Parameters:
idx- = indexconfidence- between zero and one- Returns:
- with the confidence given, a bound to the relative error of the mean of the first idx elements of the sequence
-
getBoundRelErrorOfMean
public double getBoundRelErrorOfMean(double confidence) Deprecated.- Specified by:
getBoundRelErrorOfMeanin interfaceDoubleRandomTable- Parameters:
confidence- between zero and one- Returns:
- with the confidence given, a bound to the relative error of the mean of the sequence
-
getAllBoundRelErrorOfMean
public double[] getAllBoundRelErrorOfMean(double confidence) Deprecated.- Specified by:
getAllBoundRelErrorOfMeanin interfaceDoubleRandomTable- Parameters:
confidence- between zero and one- Returns:
- with the confidence given, an array of bounds to the relative errors of the partial means of the sequence
-
writeBoundRelErrorOfMeanDSS
Deprecated.- Specified by:
writeBoundRelErrorOfMeanDSSin interfaceDoubleRandomTable- Parameters:
dssId-confidence- between zero and one Writes to DSS the running bounds of rel error of mean
-
getConfidenceInterval
public double[] getConfidenceInterval(int idx, double confidence) Deprecated.- Specified by:
getConfidenceIntervalin interfaceDoubleRandomTable- Parameters:
idx- = indexconfidence- between zero and one- Returns:
- the confidence interval of the average based on the first idx+1 elements of the sequence
-
getConfidenceInterval
public double[] getConfidenceInterval(double confidence) Deprecated.- Specified by:
getConfidenceIntervalin interfaceDoubleRandomTable- Parameters:
confidence- between zero and one- Returns:
- the confidence interval of the average of the sequence
-
getAllConfidenceInterval
public double[][] getAllConfidenceInterval(double confidence) Deprecated.- Specified by:
getAllConfidenceIntervalin interfaceDoubleRandomTable- Parameters:
confidence- between zero and one- Returns:
- the confidence interval of the partial means (running average) of the sequence
-
writeConfidenceInterval
Deprecated.- Specified by:
writeConfidenceIntervalin interfaceDoubleRandomTable- Parameters:
dssId-confidence- between zero and one Writes to DSS the confidence interval of the partial means (running average) of the sequence
-