Esempio n. 1
0
        /** Method:  Constructor
         * maxClasses -  maximum of classes allowed for histogram
         * maxCombTerms -  maximum of convolution terms for combinatory calculation
         * maxFftTerms -  maximum of convolution terms for fast fourier calculation
         * nThreads -  number of threads */
        internal Convolution(int maxClasses, int maxCombTerms, int maxFftTerms, int nThreads)
        {
            this.comb = new Combinatory();
            stat      = new StatFunctions();
            normal    = new NormalDistrib();
            fft       = new FFT();

            this.maxClasses   = maxClasses;
            this.maxCombTerms = maxCombTerms;
            this.maxFftTerms  = maxFftTerms;
            this.nThreads     = nThreads;
        }
Esempio n. 2
0
        internal MontecarloGenericConv(int maxIt, int normMin)
        {
            distributions = new List <Distribution>();
            de            = new KernelDensity(1, 100, 100);
            nd            = new NormalDistrib();
            rg            = new RndGenerator();
            this.maxIt    = maxIt;
            this.normMin  = normMin;

            this.mean  = -1;
            this.stDev = -1;
        }
 /** Method:  Constructor */
 internal NormalConv()
 {
     data = new List <double>();
     stat = new StatFunctions();
     nd   = new NormalDistrib();
 }