Java NormalDistribution类代码示例

本文整理汇总了Java中com.rapidminer.tools.math.distribution.NormalDistribution的典型用法代码示例。如果您正苦于以下问题:Java NormalDistribution类的具体用法?Java NormalDistribution怎么用?Java NormalDistribution使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java NormalDistribution类代码示例

NormalDistribution类属于com.rapidminer.tools.math.distribution包,在下文中一共展示了NormalDistribution类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getLowerBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getLowerBound(int attributeIndex) {
	if (!nominal[attributeIndex]) {
		double lowerBound = Double.POSITIVE_INFINITY;
		for (int i = 0; i < numberOfClasses; i++) {
			double currentLowerBound = NormalDistribution.getLowerBound(
					distributionProperties[attributeIndex][i][INDEX_MEAN],
					distributionProperties[attributeIndex][i][INDEX_STANDARD_DEVIATION]);
			if (!Double.isNaN(currentLowerBound)) {
				lowerBound = Math.min(lowerBound, currentLowerBound);
			}
		}
		return lowerBound;
	} else {
		return Double.NaN;
	}
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:SimpleDistributionModel.java

示例2: getUpperBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getUpperBound(int attributeIndex) {
	if (!nominal[attributeIndex]) {
		double upperBound = Double.NEGATIVE_INFINITY;
		for (int i = 0; i < numberOfClasses; i++) {
			double currentUpperBound = NormalDistribution.getUpperBound(
					distributionProperties[attributeIndex][i][INDEX_MEAN],
					distributionProperties[attributeIndex][i][INDEX_STANDARD_DEVIATION]);
			if (!Double.isNaN(currentUpperBound)) {
				upperBound = Math.max(upperBound, currentUpperBound);
			}
		}
		return upperBound;
	} else {
		return Double.NaN;
	}
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:SimpleDistributionModel.java

示例3: getProbability

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getProbability(double value) {
	updateBandwidth();
	double probability = 0;
	for (Map.Entry<Double, Double> entry : valueWeightMap.entrySet()) {
		double scaledValue = (value - entry.getKey().doubleValue()) / bandwidth;
		if (scaledValue < STANDARD_NORMAL_LOWER_BOUND || scaledValue > STANDARD_NORMAL_UPPER_BOUND) {
			continue;
		}
		probability += NormalDistribution.getProbability(0, 1, scaledValue) * entry.getValue().doubleValue();
	}
	probability /= bandwidth;
	if (probability == 0) {
		return Double.MIN_VALUE;
	}
	return probability / weightSum;
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:FullKernelDistribution.java

示例4: getUpperBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getUpperBound() {
	double maxMean = Double.NEGATIVE_INFINITY;
	double maxStandardDeviation = DEFAULT_BANDWIDTH;
	for (NormalKernel kernel : kernels) {
		double mean = kernel.getMean();
		double standardDeviation = kernel.getStandardDeviation();
		if (mean > maxMean) {
			maxMean = mean;
		}
		if (standardDeviation > maxStandardDeviation) {
			maxStandardDeviation = standardDeviation;
		}
	}
	return NormalDistribution.getUpperBound(maxMean, maxStandardDeviation);
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:17,代码来源:GreedyKernelDistribution.java

示例5: getLowerBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getLowerBound() {
	double minMean = Double.POSITIVE_INFINITY;
	double maxStandardDeviation = DEFAULT_BANDWIDTH;
	for (NormalKernel kernel : kernels) {
		double mean = kernel.getMean();
		double standardDeviation = kernel.getStandardDeviation();
		if (mean < minMean) {
			minMean = mean;
		}
		if (standardDeviation > maxStandardDeviation) {
			maxStandardDeviation = standardDeviation;
		}
	}
	return NormalDistribution.getLowerBound(minMean, maxStandardDeviation);
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:17,代码来源:GreedyKernelDistribution.java

示例6: getProbability

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getProbability(double value) {
    updateBandwidth();
    double probability = 0;
    for (Map.Entry<Double, Double> entry : valueWeightMap.entrySet()) {
        double scaledValue = (value - entry.getKey().doubleValue()) / bandwidth;
        if (scaledValue < STANDARD_NORMAL_LOWER_BOUND || scaledValue > STANDARD_NORMAL_UPPER_BOUND) {
            continue;
        }
        probability += NormalDistribution.getProbability(0, 1, scaledValue) * entry.getValue().doubleValue();
    }
    probability /= bandwidth;
    if (probability == 0) {
        return Double.MIN_VALUE;
    }
    return probability / weightSum;
} 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:18,代码来源:FullKernelDistribution.java

示例7: getDistribution

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public Distribution getDistribution(int classIndex, int attributeIndex) {
	if (nominal[attributeIndex]) {
		double[] probabilities = new double[distributionProperties[attributeIndex][classIndex].length];
		for (int i = 0; i < probabilities.length; i++) {
			probabilities[i] = Math.exp(distributionProperties[attributeIndex][classIndex][i]);
		}
		return new DiscreteDistribution(attributeNames[attributeIndex], probabilities, attributeValues[attributeIndex]);
	} else {
		return new NormalDistribution(distributionProperties[attributeIndex][classIndex][INDEX_MEAN],
				distributionProperties[attributeIndex][classIndex][INDEX_STANDARD_DEVIATION]);
	}
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:14,代码来源:SimpleDistributionModel.java

示例8: getLowerBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getLowerBound(int attributeIndex) {
	if (!nominal[attributeIndex]) {
		double lowerBound = Double.POSITIVE_INFINITY;
		for (int i = 0; i < numberOfClasses; i++) {
			double currentLowerBound = NormalDistribution.getLowerBound(distributionProperties[attributeIndex][i][INDEX_MEAN], distributionProperties[attributeIndex][i][INDEX_STANDARD_DEVIATION]);
			if (!Double.isNaN(currentLowerBound)) {
				lowerBound = Math.min(lowerBound, currentLowerBound);
			}
		}
		return lowerBound;
	} else {
		return Double.NaN;
	}
} 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:16,代码来源:SimpleDistributionModel.java

示例9: getUpperBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getUpperBound(int attributeIndex) {
	if (!nominal[attributeIndex]) {
		double upperBound = Double.NEGATIVE_INFINITY;
		for (int i = 0; i < numberOfClasses; i++) {
			double currentUpperBound = NormalDistribution.getUpperBound(distributionProperties[attributeIndex][i][INDEX_MEAN], distributionProperties[attributeIndex][i][INDEX_STANDARD_DEVIATION]);
			if (!Double.isNaN(currentUpperBound)) {
				upperBound = Math.max(upperBound, currentUpperBound);
			}
		}
		return upperBound;
	} else {
		return Double.NaN;
	}
} 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:16,代码来源:SimpleDistributionModel.java

示例10: getDistribution

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public Distribution getDistribution(int classIndex, int attributeIndex) {
	if (nominal[attributeIndex]) {
		double[] probabilities = new double[distributionProperties[attributeIndex][classIndex].length];
		for (int i = 0; i < probabilities.length; i++) {
			probabilities[i] = Math.exp(distributionProperties[attributeIndex][classIndex][i]);
		}
		return new DiscreteDistribution(attributeNames[attributeIndex], probabilities, attributeValues[attributeIndex]);
	} else {
		return new NormalDistribution(distributionProperties[attributeIndex][classIndex][INDEX_MEAN], distributionProperties[attributeIndex][classIndex][INDEX_STANDARD_DEVIATION]);
	}
} 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:13,代码来源:SimpleDistributionModel.java

示例11: getUpperBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getUpperBound() {
	updateBandwidth();
	return NormalDistribution.getUpperBound(maxValue, bandwidth);
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:6,代码来源:FullKernelDistribution.java

示例12: getLowerBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getLowerBound() {
	updateBandwidth();
	return NormalDistribution.getLowerBound(minValue, bandwidth);
} 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:6,代码来源:FullKernelDistribution.java

示例13: getUpperBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getUpperBound() {
    updateBandwidth();
    return NormalDistribution.getUpperBound(maxValue, bandwidth);
} 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:6,代码来源:FullKernelDistribution.java

示例14: getLowerBound

import com.rapidminer.tools.math.distribution.NormalDistribution; //导入依赖的package包/类
@Override
public double getLowerBound() {
    updateBandwidth();
    return NormalDistribution.getLowerBound(minValue, bandwidth);
} 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:6,代码来源:FullKernelDistribution.java

本文标签属性:

示例:示例图

代码:代码生成器

java:java自行车

NormalDistribution:NormalDistribution

上一篇:科比怎么坠机身亡事件(科比什么时候坠机身亡事件)
下一篇:C++ CWeapon::GetInfo方法代码示例

为您推荐