org.apache.mahout.math.Vector.getLookupCost()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中org.apache.mahout.math.Vector.getLookupCost()方法的一些代码示例,展示了Vector.getLookupCost()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.getLookupCost()方法的具体详情如下:
包路径:org.apache.mahout.math.Vector
类名称:Vector
方法名:getLookupCost

Vector.getLookupCost介绍

[英]Gets an estimate of the cost (in number of operations) it takes to lookup a random element in this vector.
[中]获取查找此向量中的随机元素所需的成本(以操作数为单位)的估计值。

代码示例

代码示例来源:origin: apache/mahout

@Override
public double getLookupCost() {
 return delegate.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double getLookupCost() {
 return delegate.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double getLookupCost() {
 return vector.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc) {
 return x.size() * x.getLookupCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return x.size() * x.getLookupCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return x.size() * x.getLookupCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc) {
 return y.getNumNondefaultElements() * y.getIteratorAdvanceCost() * x.getLookupCost() * x.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return y.getNumNondefaultElements() * y.getIteratorAdvanceCost() * x.getLookupCost() * x.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc) {
 return Math.max(x.getNumNondefaultElements() * x.getIteratorAdvanceCost() * y.getLookupCost(),
   y.getNumNondefaultElements() * y.getIteratorAdvanceCost() * x.getLookupCost());
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return Math.max(x.getNumNondefaultElements() * x.getIteratorAdvanceCost() * y.getLookupCost(),
   y.getNumNondefaultElements() * y.getIteratorAdvanceCost() * x.getLookupCost());
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return Math.max(x.getNumNondefaultElements() * x.getIteratorAdvanceCost() * y.getLookupCost(),
   y.getNumNondefaultElements() * y.getIteratorAdvanceCost() * x.getLookupCost());
}
@Override

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc) {
 return x.size() * x.getIteratorAdvanceCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return x.getNumNondefaultElements() * x.getIteratorAdvanceCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return y.size() * y.getIteratorAdvanceCost() * x.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double getLookupCost() {
 return (rowToColumn ? matrix.viewColumn(0) : matrix.viewRow(0)).getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return x.size() * x.getIteratorAdvanceCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc) {
 return x.getNumNondefaultElements() * x.getIteratorAdvanceCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc) {
 return y.size() * y.getIteratorAdvanceCost() * x.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return y.getNumNondefaultElements() * y.getIteratorAdvanceCost() * y.getLookupCost();
}

代码示例来源:origin: apache/mahout

@Override
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction f) {
 return x.size() * x.getIteratorAdvanceCost() * y.getLookupCost();
}

相关文章