Package org.apache.commons.math3.random
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 BufferedReader
Input stream providing access to the data -
Constructor Summary
ConstructorsConstructorDescriptionCreate a StreamDataAdapter from a BufferedReader -
Method Summary
Modifier and TypeMethodDescriptionvoid
Compute bin stats.void
Compute 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:
computeBinStats
in classEmpiricalDistribution.DataAdapter
- Throws:
IOException
- if an error occurs computing bin stats
-
computeStats
Compute sample statistics.- Specified by:
computeStats
in classEmpiricalDistribution.DataAdapter
- Throws:
IOException
- if an error occurs computing sample stats
-