Exemplo n.º 1
0
  public float[] setValue(int index, float v[]) {

    if (getnRWPerm() == 1 || getnRWPerm() == 2) {
      this.v = v;
      mDataWR.setFloatSeqData(this, true, index);
    }
    return this.v;
  }
Exemplo n.º 2
0
  public float multiply(int index, double v) {

    if (getnRWPerm() == 1 || getnRWPerm() == 2) {
      this.v[index] *= v;
      if (nLastV != null) {
        if (this.v[index] == nLastV[index]) {
          if (nNum > 2) {
            return this.v[index];
          }
        } else {
          nLastV[index] = this.v[index];
          nNum = 0;
        }
        nNum++;
      }
      mDataWR.setFloatSeqData(this, false, index);
    }
    return this.v[index];
  }
Exemplo n.º 3
0
  public float decrease(int index) {

    if (getnRWPerm() == 1 || getnRWPerm() == 2) {
      this.v[index]--;
      if (nLastV != null) {
        if (this.v[index] == nLastV[index]) {
          if (nNum > 2) {
            return this.v[index];
          }
        } else {
          nLastV[index] = this.v[index];
          nNum = 0;
        }
        nNum++;
      }
      mDataWR.setFloatSeqData(this, false, index);
    }
    return this.v[index];
  }