Beispiel #1
0
        void InternalReallocIndependentVariables(int noIndep)
        {
            NumericColumnProxy[] oldArr = this._independentVariables;
            NumericColumnProxy[] newArr = new NumericColumnProxy[noIndep];
            for (int i = Math.Min(newArr.Length, oldArr.Length) - 1; i >= 0; i--)
            {
                newArr[i] = oldArr[i];
            }

            this._independentVariables = newArr;
        }
Beispiel #2
0
        public FitElement(INumericColumn xColumn, INumericColumn yColumn, int start, int count)
        {
            _independentVariables    = new NumericColumnProxy[1];
            _independentVariables[0] = new NumericColumnProxy(xColumn);

            _dependentVariables    = new NumericColumnProxy[1];
            _dependentVariables[0] = new NumericColumnProxy(yColumn);

            _errorEvaluation    = new IVarianceScaling[1];
            _errorEvaluation[0] = new ConstantVarianceScaling();

            _rangeOfRows = PositiveIntegerRange.NewFromFirstAndCount(start, count);
        }
Beispiel #3
0
 void CopyFrom(ErrorBarPlotStyle from)
 {
     this._independentSymbolSize           = from._independentSymbolSize;
     this._symbolSize                      = from._symbolSize;
     this._symbolGap                       = from._symbolGap;
     this._independentColor                = from._independentColor;
     this._showEndBars                     = from._showEndBars;
     this._isHorizontalStyle               = from._isHorizontalStyle;
     this._doNotShiftHorizontalPosition    = from._doNotShiftHorizontalPosition;
     this._strokePen                       = (PenX)from._strokePen.Clone();
     this._positiveErrorColumn             = (NumericColumnProxy)from._positiveErrorColumn.Clone();
     this._negativeErrorColumn             = (NumericColumnProxy)from._negativeErrorColumn.Clone();
     this._cachedLogicalShiftOfIndependent = from._cachedLogicalShiftOfIndependent;
 }
Beispiel #4
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;
            }
        }