class EmpiricalDistribution extends AbstractRealDistribution {

    public void load(double[] in) throws NullArgumentException {
        DataAdapter da = new ArrayDataAdapter(in);
        try {
            da.computeStats();
            // new adapter for the second pass
            fillBinStats(new ArrayDataAdapter(in));
        } catch (IOException ex) {
            // Can't happen
            throw new MathInternalError();
        }
        loaded = true;

    }

    public  EmpiricalDistribution();
    public  EmpiricalDistribution(int binCount);
    public  EmpiricalDistribution(int binCount, RandomGenerator generator);
    public  EmpiricalDistribution(RandomGenerator generator);
    @Deprecated public  EmpiricalDistribution(int binCount, RandomDataImpl randomData);
    @Deprecated public  EmpiricalDistribution(RandomDataImpl randomData);
    private  EmpiricalDistribution(int binCount,
                                  RandomDataGenerator randomData);

}