org.apache.commons.math3.random
Class EmpiricalDistribution.StreamDataAdapter

java.lang.Object
  extended by org.apache.commons.math3.random.EmpiricalDistribution.DataAdapter
      extended by org.apache.commons.math3.random.EmpiricalDistribution.StreamDataAdapter
Enclosing class:
EmpiricalDistribution

private class EmpiricalDistribution.StreamDataAdapter
extends EmpiricalDistribution.DataAdapter

DataAdapter for data provided through some input stream


Field Summary
private  java.io.BufferedReader inputStream
          Input stream providing access to the data
 
Constructor Summary
EmpiricalDistribution.StreamDataAdapter(java.io.BufferedReader in)
          Create a StreamDataAdapter from a BufferedReader
 
Method Summary
 void computeBinStats()
          Compute bin stats.
 void computeStats()
          Compute sample statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputStream

private java.io.BufferedReader inputStream
Input stream providing access to the data

Constructor Detail

EmpiricalDistribution.StreamDataAdapter

public EmpiricalDistribution.StreamDataAdapter(java.io.BufferedReader in)
Create a StreamDataAdapter from a BufferedReader

Parameters:
in - BufferedReader input stream
Method Detail

computeBinStats

public void computeBinStats()
                     throws java.io.IOException
Compute bin stats.

Specified by:
computeBinStats in class EmpiricalDistribution.DataAdapter
Throws:
java.io.IOException - if an error occurs computing bin stats

computeStats

public void computeStats()
                  throws java.io.IOException
Compute sample statistics.

Specified by:
computeStats in class EmpiricalDistribution.DataAdapter
Throws:
java.io.IOException - if an error occurs computing sample stats


Copyright (c) 2003-2013 Apache Software Foundation