org.ujmp.core.Matrix.power()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(86)

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

Matrix.power介绍

暂无

代码示例

代码示例来源:origin: ujmp/universal-java-matrix-package

public Object call() {
  Matrix m = getMatrixObject().getMatrix().power(getRet(),
      GUIUtil.getDouble("All cells to the power of", -Double.MAX_VALUE, Double.MAX_VALUE));
  return m;
}

代码示例来源:origin: ujmp/universal-java-matrix-package

Matrix row = allmeans.selectRows(Ret.NEW, jamaRow);
Matrix m = Matrix.Factory.vertCat(row, allmeans.getRowCount());
Matrix scaled = allmeans.divide(Ret.NEW, false, m).power(Ret.NEW, -1)
    .transpose(Ret.NEW);
scaled.setLabel(allmeans.getLabel() + "-scaled");

代码示例来源:origin: jdmp/java-data-mining-package

private Object getObject(PLevel1 factor) throws Exception {
  if (factor instanceof ALevel0Level1) {
    return getObject(((ALevel0Level1) factor).getLevel0());
  } else if (factor instanceof APowerLevel1) {
    Matrix left = MathUtil.getMatrix(getObject(((APowerLevel1) factor).getLeft()));
    Matrix right = MathUtil.getMatrix(getObject(((APowerLevel1) factor).getRight()));
    // TODO
  } else if (factor instanceof ADotPowerLevel1) {
    Matrix left = MathUtil.getMatrix(getObject(((ADotPowerLevel1) factor).getLeft()));
    Matrix right = MathUtil.getMatrix(getObject(((ADotPowerLevel1) factor).getRight()));
    return left.power(Ret.NEW, right);
  } else if (factor instanceof ATransposeLevel1) {
    Matrix m = MathUtil.getMatrix(getObject(((ATransposeLevel1) factor).getLevel0()));
    return m.transpose();
  } else if (factor instanceof ADotTransposeLevel1) {
    Matrix m = MathUtil.getMatrix(getObject(((ADotTransposeLevel1) factor).getLevel0()));
    return m.transpose();
  }
  RuntimeException e = new RuntimeException("Unknown expression type: "
      + factor.getClass().getSimpleName());
  result = new Result(e);
  throw e;
}

代码示例来源:origin: jdmp/java-data-mining-package

Matrix squared = diff.power(Ret.NEW, 2);

相关文章

Matrix类方法