Ejemplo n.º 1
0
        void InternalReallocDependentVariables(int noDep)
        {
            {
                NumericColumnProxy[] oldArr = this._dependentVariables;
                NumericColumnProxy[] newArr = new NumericColumnProxy[noDep];
                for (int i = Math.Min(newArr.Length, oldArr.Length) - 1; i >= 0; i--)
                {
                    newArr[i] = oldArr[i];
                }
                this._dependentVariables = newArr;
            }
            {
                // do the same also with the error scaling

                IVarianceScaling[] oldArr = _errorEvaluation;
                IVarianceScaling[] newArr = new IVarianceScaling[noDep];
                for (int i = Math.Min(newArr.Length, oldArr.Length) - 1; i >= 0; i--)
                {
                    newArr[i] = oldArr[i];
                }
                this._errorEvaluation = newArr;
            }
        }
Ejemplo n.º 2
0
    void InternalReallocDependentVariables(int noDep)
    {
    {
      NumericColumnProxy[] oldArr = this._dependentVariables;
      NumericColumnProxy[] newArr = new NumericColumnProxy[noDep];
      for(int i=Math.Min(newArr.Length,oldArr.Length)-1;i>=0;i--)
        newArr[i] = oldArr[i];
      this._dependentVariables = newArr;
    }
    {
      // do the same also with the error scaling

      IVarianceScaling[] oldArr = _errorEvaluation;
      IVarianceScaling[] newArr = new IVarianceScaling[noDep];
      for(int i=Math.Min(newArr.Length,oldArr.Length)-1;i>=0;i--)
        newArr[i] = oldArr[i];
      this._errorEvaluation = newArr;
    }
    }
Ejemplo n.º 3
0
 public void SetErrorEvaluation(int i, IVarianceScaling val)
 {
   this._errorEvaluation[i] = val;
 }
Ejemplo n.º 4
0
 public void SetErrorEvaluation(int i, IVarianceScaling val)
 {
     this._errorEvaluation[i] = val;
 }