Examples of density()


Examples of ch.akuhn.hapax.index.TermDocumentMatrix.density()

        Out.puts(Get.head(tdm.documents()));
        Out.puts(tdm.getDocument(Get.head(tdm.documents())));
       
        Out.puts(tdm);

        Out.puts(tdm.density());

        tdm = tdm.rejectAndWeight();

        Out.puts(tdm);
View Full Code Here

Examples of ch.akuhn.hapax.index.TermDocumentMatrix.density()

        tdm = tdm.rejectAndWeight();

        Out.puts(tdm);

        Out.puts(tdm.density());

        Out.puts(tdm.terms().sortedCounts());

        LatentSemanticIndex lsi = tdm.createIndex();
View Full Code Here

Examples of org.apache.commons.math3.distribution.NormalDistribution.density()

        System.out.println(normal.density(p, param_norm));

        p.array[0] = 27;
        System.out.println(bn.cumulativeProbability(27));
        System.out.println(n.cumulativeProbability(27));
        System.out.println(n.density(27));
        System.out.println(normal.density(p, param_norm));

        p.array[0] = 60;
        System.out.println(bn.cumulativeProbability(60));
        System.out.println(n.cumulativeProbability(60));
View Full Code Here

Examples of org.apache.commons.math3.distribution.NormalDistribution.density()

        System.out.println(normal.density(p, param_norm));

        p.array[0] = 60;
        System.out.println(bn.cumulativeProbability(60));
        System.out.println(n.cumulativeProbability(60));
        System.out.println(n.density(60));
        System.out.println(normal.density(p, param_norm));



    }
View Full Code Here

Examples of org.apache.commons.math3.distribution.NormalDistribution.density()

            presentLife = getPresent();
        }
        //System.out.println(expectedValue);
        //System.out.println(standardDeviation);
        NormalDistribution normDist = new NormalDistribution(expectedValue, standardDeviation);
        normalHazardRate = (normDist.density(presentLife)/(1-normDist.cumulativeProbability(presentLife)))/timeDiv;
        //System.out.println(1-normDist.cumulativeProbability(presentLife));
        //System.out.println(presentLife);
        if(breakPoint>0f){
            //Use the reduction Factor or Not
            if("Y".equals(repMod)){
View Full Code Here

Examples of org.apache.commons.math3.distribution.RealDistribution.density()

        if (x < min || x > max) {
            return 0d;
        }
        final int binIndex = findBin(x);
        final RealDistribution kernel = getKernel(binStats.get(binIndex));
        return kernel.density(x) * pB(binIndex) / kB(binIndex);
    }

    /**
     * {@inheritDoc}
     *
 
View Full Code Here

Examples of org.apache.commons.math3.distribution.RealDistribution.density()

            final double lower = bin == 0 ? empiricalDistribution.getSupportLowerBound() :
                binBounds[bin - 1];
            final double upper = binBounds[bin];
            final RealDistribution kernel = findKernel(lower, upper);
            final double withinBinKernelMass = kernel.cumulativeProbability(lower, upper);
            final double density = kernel.density(testPoints[i]);
            densityValues[i] = density * (bin == 0 ? firstBinMass : binMass) / withinBinKernelMass;  
        }
        return densityValues;
    }
   
View Full Code Here

Examples of org.apache.commons.math3.distribution.RealDistribution.density()

        final double tol = 1.0e-9;
        final BaseAbstractUnivariateIntegrator integrator =
            new IterativeLegendreGaussIntegrator(5, 1.0e-12, 1.0e-10);
        final UnivariateFunction d = new UnivariateFunction() {
            public double value(double x) {
                return distribution.density(x);
            }
        };
        final double[] lower = {0, 5, 1000, 5001, 9995};
        final double[] upper = {5, 12, 1030, 5010, 10000};
        for (int i = 1; i < 5; i++) {
View Full Code Here

Examples of org.apache.commons.math3.distribution.RealDistribution.density()

        if (x < min || x > max) {
            return 0d;
        }
        final int binIndex = findBin(x);
        final RealDistribution kernel = getKernel(binStats.get(binIndex));
        return kernel.density(x) * pB(binIndex) / kB(binIndex);
    }

    /**
     * {@inheritDoc}
     *
 
View Full Code Here

Examples of org.apache.commons.math3.distribution.RealDistribution.density()

            final double lower = bin == 0 ? empiricalDistribution.getSupportLowerBound() :
                binBounds[bin - 1];
            final double upper = binBounds[bin];
            final RealDistribution kernel = findKernel(lower, upper);
            final double withinBinKernelMass = kernel.cumulativeProbability(lower, upper);
            final double density = kernel.density(testPoints[i]);
            densityValues[i] = density * (bin == 0 ? firstBinMass : binMass) / withinBinKernelMass;  
        }
        return densityValues;
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.