本文整理汇总了Java中cern.jet.stat.Descriptive.sumOfLogarithms方法的典型用法代码示例。如果您正苦于以下问题:Java Descriptive.sumOfLogarithms方法的具体用法?Java Descriptive.sumOfLogarithms怎么用?Java Descriptive.sumOfLogarithms使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cern.jet.stat.Descriptive
的用法示例。
在下文中一共展示了Descriptive.sumOfLogarithms方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addAllOfFromTo
import cern.jet.stat.Descriptive; //导入方法依赖的package包/类
/**
* Adds the part of the specified list between indexes <tt>from</tt> (inclusive) and <tt>to</tt> (inclusive) to the receiver.
*
* @param list the list of which elements shall be added.
* @param from the index of the first element to be added (inclusive).
* @param to the index of the last element to be added (inclusive).
* @throws IndexOutOfBoundsException if <tt>list.size()>0 && (from<0 || from>to || to>=list.size())</tt>.
*/
public synchronized void addAllOfFromTo(DoubleArrayList list, int from, int to) {
super.addAllOfFromTo(list, from, to);
if (this.sumOfPowers != null) {
//int max_k = this.min_k + this.sumOfPowers.length-1;
Descriptive.incrementalUpdateSumsOfPowers(list, from, to, 3, getMaxOrderForSumOfPowers(), this.sumOfPowers);
}
if (this.hasSumOfInversions) {
this.sumOfInversions += Descriptive.sumOfInversions(list, from, to);
}
if (this.hasSumOfLogarithms) {
this.sumOfLogarithms += Descriptive.sumOfLogarithms(list, from, to);
}
}
示例2: updateSumOfLogarithms
import cern.jet.stat.Descriptive; //导入方法依赖的package包/类
/**
*
*/
protected void updateSumOfLogarithms() {
this.sumOfLogarithms = Descriptive.sumOfLogarithms(this.elements,0,size()-1);
this.isSumOfLogarithmsValid = true;
}