Esempio n. 1
0
        public IDistribution next()
        {
            IDistribution answer = _current;

            if (_ds.MeanIterator.hasNext())
            {
                _mean    = _ds.MeanIterator.next();
                _current = new Distribution_Gaussian(_ds.BlauSpace, _mean, _std);
            }
            else
            {
                _ds.MeanIterator.reset();
                _mean = _ds.MeanIterator.next();

                if (_ds.StdIterator.hasNext())
                {
                    _std     = _ds.StdIterator.next();
                    _current = new Distribution_Gaussian(_ds.BlauSpace, _mean, _std);
                }
                else
                {
                    _current = null;
                }
            }
            return(answer);
        }
Esempio n. 2
0
 public DistributionSpaceIterator_SingleGaussian(IBlauSpace space, IBlauSpaceIterator meanIter, IBlauSpaceIterator stdIter)
 {
     _ds      = new DistributionSpace_SingleGaussian(space, meanIter.clone(), stdIter.clone());
     _std     = _ds.StdIterator.next();
     _mean    = _ds.MeanIterator.next();
     _current = new Distribution_Gaussian(space, _mean, _std);
 }
Esempio n. 3
0
 protected Distribution_Gaussian(Distribution_Gaussian orig) : base(orig)
 {
     _mean = orig._mean;
     _std  = orig._std;
     this.addParams(2);
 }