Class EmpiricalDistribution.StreamDataAdapter
java.lang.Object
org.apache.commons.math3.random.EmpiricalDistribution.DataAdapter
org.apache.commons.math3.random.EmpiricalDistribution.StreamDataAdapter
- Enclosing class:
EmpiricalDistribution
DataAdapter for data provided through some input stream-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedReaderInput stream providing access to the data -
Constructor Summary
ConstructorsConstructorDescriptionCreate a StreamDataAdapter from a BufferedReader -
Method Summary
Modifier and TypeMethodDescriptionvoidCompute bin stats.voidCompute sample statistics.
-
Field Details
-
inputStream
Input stream providing access to the data
-
-
Constructor Details
-
StreamDataAdapter
StreamDataAdapter(BufferedReader in) Create a StreamDataAdapter from a BufferedReader- Parameters:
in- BufferedReader input stream
-
-
Method Details
-
computeBinStats
Compute bin stats.- Specified by:
computeBinStatsin classEmpiricalDistribution.DataAdapter- Throws:
IOException- if an error occurs computing bin stats
-
computeStats
Compute sample statistics.- Specified by:
computeStatsin classEmpiricalDistribution.DataAdapter- Throws:
IOException- if an error occurs computing sample stats
-