public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                NumericColumnProxy s = o != null ? (NumericColumnProxy)o : new NumericColumnProxy();

                info.GetBaseValueEmbedded(s, typeof(DocNodeProxy), parent); // deserialize the base class

                return(s);
            }
Exemple #2
0
 /// <summary>
 /// Creates an <see cref="INumericColumnProxy"/> from a given column.
 /// </summary>
 /// <param name="column">The column.</param>
 /// <returns>An instance of <see cref="INumericColumnProxy"/>. The type of instance returned depends on the type of the provided column (e.g. whether the column is part of the document or not).</returns>
 public static INumericColumnProxy FromColumn(INumericColumn column)
 {
     if (column is IDocumentLeafNode)
     {
         return(NumericColumnProxy.FromColumn(column));
     }
     else
     {
         return(NumericColumnProxyForStandaloneColumns.FromColumn(column));
     }
 }
 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;
 }
Exemple #4
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="from">Object to clone from.</param>
 public NumericColumnProxy(NumericColumnProxy from)
     : base(from)
 {
 }
    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;
    }
    }
    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;
    }
    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);

    }
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="from">Object to clone from.</param>
 public NumericColumnProxy(NumericColumnProxy from)
   : base(from)
 {
 }