Package rma.stats.model
Class DoubleRandomMap
java.lang.Object
rma.stats.model.DoubleRandomMap
- All Implemented Interfaces:
DoubleRandomTable
Deprecated.
in hec-monolith 1.0. Look for equivalent in package hec.statistics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(double idx, double val) Deprecated.void
add
(int idx, double val) Deprecated.void
addAll
(double[] keyArray, double[] valArray) Deprecated.void
addAll
(int[] keyArray, double[] valArray) Deprecated.void
clear()
Deprecated.clone()
Deprecated.double
get
(double idx) Deprecated.double
get
(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.double
getAvg()
Deprecated.double
getAvg
(double idx) Deprecated.double
getAvg
(int idx) Deprecated.double
getBoundAbsErrorOfMean
(double confidence) Deprecated.double
getBoundAbsErrorOfMean
(double idx, double confidence) Deprecated.double
getBoundAbsErrorOfMean
(int idx, double confidence) Deprecated.double
getBoundRelErrorOfMean
(double confidence) Deprecated.double
getBoundRelErrorOfMean
(double idx, double confidence) Deprecated.double
getBoundRelErrorOfMean
(int idx, double confidence) Deprecated.double[]
getConfidenceInterval
(double confidence) Deprecated.double[]
getConfidenceInterval
(double idx, double confidence) Deprecated.double[]
getConfidenceInterval
(int idx, double confidence) Deprecated.double
getStdv()
Deprecated.double
getStdv
(double idx) Deprecated.double
getStdv
(int idx) Deprecated.boolean
readBuf
(BufferedReader buf) Deprecated.Reads values from buffer readervoid
readDSS
(DSSIdentifier dssId) Deprecated.int
size()
Deprecated.void
writeAvgDSS
(DSSIdentifier dssId) Deprecated.void
writeBoundAbsErrorOfMeanDSS
(DSSIdentifier dssId, double confidence) Deprecated.void
writeBoundRelErrorOfMeanDSS
(DSSIdentifier dssId, double confidence) Deprecated.boolean
writeBuf
(BufferedWriter buf) Deprecated.Writes values to buffer writervoid
writeConfidenceInterval
(DSSIdentifier dssId, double confidence) Deprecated.void
writeDSS
(DSSIdentifier dssId) Deprecated.void
writeStdvDSS
(DSSIdentifier dssId) Deprecated.
-
Constructor Details
-
DoubleRandomMap
public DoubleRandomMap()Deprecated.
-
-
Method Details
-
size
public int size()Deprecated.- Specified by:
size
in interfaceDoubleRandomTable
-
clear
public void clear()Deprecated.- Specified by:
clear
in interfaceDoubleRandomTable
-
clone
Deprecated.- Specified by:
clone
in interfaceDoubleRandomTable
- Overrides:
clone
in classObject
-
writeBuf
Deprecated.Writes values to buffer writer- Specified by:
writeBuf
in interfaceDoubleRandomTable
-
readBuf
Deprecated.Reads values from buffer reader- Specified by:
readBuf
in interfaceDoubleRandomTable
-
add
public void add(int idx, double val) Deprecated.- Specified by:
add
in interfaceDoubleRandomTable
- Parameters:
idx
- = index = KEYval
- = double value Adds a new element to the map of random values
-
add
public void add(double idx, double val) Deprecated.- Parameters:
idx
- = index = KEYval
- = double value Adds a new element to the map of random values
-
addAll
public void addAll(int[] keyArray, double[] valArray) Deprecated.- Parameters:
keyArray
- = indexvalArray
- = double value Adds new elements to the map of random values
-
addAll
public void addAll(double[] keyArray, double[] valArray) Deprecated.- Parameters:
keyArray
- = indexvalArray
- = double value Adds new elements to the map of random values
-
get
public double get(int idx) Deprecated.- Specified by:
get
in interfaceDoubleRandomTable
- Parameters:
idx
- = index = KEY- Returns:
- the element idx of the map
-
get
public double get(double idx) Deprecated.- Parameters:
idx
- = index = KEY- Returns:
- the element idx of the map
-
getAllIdx
public double[] getAllIdx()Deprecated.- Returns:
- an array with all keys in the map, sorted!
-
getAll
public double[] getAll()Deprecated.- Specified by:
getAll
in interfaceDoubleRandomTable
- Returns:
- an array with all elements in the map
-
writeDSS
Deprecated.- Specified by:
writeDSS
in interfaceDoubleRandomTable
- Parameters:
dssId
- Writes values to DSS
-
readDSS
Deprecated.- Specified by:
readDSS
in interfaceDoubleRandomTable
- Parameters:
dssId
- Reads values from DSS
-
getAvg
public double getAvg(int idx) Deprecated.- Specified by:
getAvg
in interfaceDoubleRandomTable
- Parameters:
idx
- = index- Returns:
- the average of elements with key <= idx
-
getAvg
public double getAvg(double idx) Deprecated.- Parameters:
idx
- = index- Returns:
- the average of elements with key <= idx
-
getAvg
public double getAvg()Deprecated.- Specified by:
getAvg
in interfaceDoubleRandomTable
- Returns:
- the average of all the elements of the map
-
getAllAvg
public double[] getAllAvg()Deprecated.- Specified by:
getAllAvg
in interfaceDoubleRandomTable
- Returns:
- an array with all partial averages (running averages) of the map
-
writeAvgDSS
Deprecated.- Specified by:
writeAvgDSS
in interfaceDoubleRandomTable
- Parameters:
dssId
- Writes to DSS running average values
-
getStdv
public double getStdv(int idx) Deprecated.- Specified by:
getStdv
in interfaceDoubleRandomTable
- Parameters:
idx
- = index- Returns:
- the standard deviation of elements with key <= idx
-
getStdv
public double getStdv(double idx) Deprecated.- Parameters:
idx
- = index- Returns:
- the standard deviation of elements with key <= idx
-
getStdv
public double getStdv()Deprecated.- Specified by:
getStdv
in interfaceDoubleRandomTable
- Returns:
- the standard deviation of all the elements of the map
-
getAllStdv
public double[] getAllStdv()Deprecated.- Specified by:
getAllStdv
in interfaceDoubleRandomTable
- Returns:
- an array with all partial stdvs (running stdvs) of the map
-
writeStdvDSS
Deprecated.- Specified by:
writeStdvDSS
in interfaceDoubleRandomTable
- Parameters:
dssId
- Writes to DSS running standard deviation values
-
getBoundAbsErrorOfMean
public double getBoundAbsErrorOfMean(int idx, double confidence) Deprecated.- Specified by:
getBoundAbsErrorOfMean
in interfaceDoubleRandomTable
- Parameters:
idx
- = indexconfidence
- between zero and one- Returns:
- with the confidence given, a bound to the absolute error of the mean of elements with key <= idx
-
getBoundAbsErrorOfMean
public double getBoundAbsErrorOfMean(double idx, double confidence) Deprecated.- Parameters:
idx
- = indexconfidence
- between zero and one- Returns:
- with the confidence given, a bound to the absolute error of the mean of elements with key <= idx
-
getBoundAbsErrorOfMean
public double getBoundAbsErrorOfMean(double confidence) Deprecated.- Specified by:
getBoundAbsErrorOfMean
in interfaceDoubleRandomTable
- Parameters:
confidence
- between zero and one- Returns:
- with the confidence given, a bound to the absolute error of the mean of the map
-
getAllBoundAbsErrorOfMean
public double[] getAllBoundAbsErrorOfMean(double confidence) Deprecated.- Specified by:
getAllBoundAbsErrorOfMean
in 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 map
-
writeBoundAbsErrorOfMeanDSS
Deprecated.- Specified by:
writeBoundAbsErrorOfMeanDSS
in 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:
getBoundRelErrorOfMean
in interfaceDoubleRandomTable
- Parameters:
idx
- = indexconfidence
- between zero and one- Returns:
- with the confidence given, a bound to the relative error of the mean of elements with key <= idx
-
getBoundRelErrorOfMean
public double getBoundRelErrorOfMean(double idx, double confidence) Deprecated.- Parameters:
idx
- = indexconfidence
- between zero and one- Returns:
- with the confidence given, a bound to the relative error of the mean of elements with key <= idx
-
getBoundRelErrorOfMean
public double getBoundRelErrorOfMean(double confidence) Deprecated.- Specified by:
getBoundRelErrorOfMean
in interfaceDoubleRandomTable
- Parameters:
confidence
- between zero and one- Returns:
- with the confidence given, a bound to the relative error of the mean of the map
-
getAllBoundRelErrorOfMean
public double[] getAllBoundRelErrorOfMean(double confidence) Deprecated.- Specified by:
getAllBoundRelErrorOfMean
in 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 map
-
writeBoundRelErrorOfMeanDSS
Deprecated.- Specified by:
writeBoundRelErrorOfMeanDSS
in 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:
getConfidenceInterval
in interfaceDoubleRandomTable
- Parameters:
idx
- = indexconfidence
- between zero and one- Returns:
- the confidence interval of the average based on elements with key <= idx
-
getConfidenceInterval
public double[] getConfidenceInterval(double idx, double confidence) Deprecated.- Parameters:
idx
- = indexconfidence
- between zero and one- Returns:
- the confidence interval of the average based on elements with key <= idx
-
getConfidenceInterval
public double[] getConfidenceInterval(double confidence) Deprecated.- Specified by:
getConfidenceInterval
in interfaceDoubleRandomTable
- Parameters:
confidence
- between zero and one- Returns:
- the confidence interval of the average of the map
-
getAllConfidenceInterval
public double[][] getAllConfidenceInterval(double confidence) Deprecated.- Specified by:
getAllConfidenceInterval
in interfaceDoubleRandomTable
- Parameters:
confidence
- between zero and one- Returns:
- the confidence interval of the partial means (running average) of the map
-
writeConfidenceInterval
Deprecated.- Specified by:
writeConfidenceInterval
in interfaceDoubleRandomTable
- Parameters:
dssId
-confidence
- between zero and one Writes to DSS the confidence interval of the partial means (running average) of the map
-