Example #1
0
        public object Clone()
        {
            ConstantVarianceScaling result = new ConstantVarianceScaling();

            result._scaling = this._scaling;
            return(result);
        }
Example #2
0
            public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ConstantVarianceScaling s = o != null ? (ConstantVarianceScaling)o : new ConstantVarianceScaling();

                s._scaling = info.GetDouble("ScalingFactor");

                return(s);
            }
Example #3
0
        public object Clone()
        {
            var result = new ConstantVarianceScaling
            {
                _scaling = _scaling
            };

            return(result);
        }
Example #4
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);
        }
Example #5
0
        public FitElement(DataTable table, int groupNumber, IRowSelection rowSelection, IReadableColumn xColumn, IReadableColumn yColumn)
        {
            if (null == rowSelection)
            {
                throw new ArgumentNullException(nameof(rowSelection));
            }

            ChildSetMember(ref _dataTable, new DataTableProxy(table));
            _groupNumber = groupNumber;
            ChildCloneToMember(ref _rangeOfRows, rowSelection);

            _independentVariables = new IReadableColumnProxy[1];
            ChildSetMember(ref _independentVariables[0], ReadableColumnProxyBase.FromColumn(xColumn));

            _dependentVariables = new IReadableColumnProxy[1];
            ChildSetMember(ref _dependentVariables[0], ReadableColumnProxyBase.FromColumn(yColumn));

            _errorEvaluation    = new IVarianceScaling[1];
            _errorEvaluation[0] = new ConstantVarianceScaling();
        }
Example #6
0
 public object Clone()
 {
   ConstantVarianceScaling result = new ConstantVarianceScaling();
   result._scaling = this._scaling;
   return result;
 }
Example #7
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);

    }
Example #8
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                ConstantVarianceScaling s = (ConstantVarianceScaling)obj;

                info.AddValue("ScalingFactor", s._scaling);
            }
Example #9
0
		public FitElement(DataTable table, int groupNumber, IRowSelection rowSelection, IReadableColumn xColumn, IReadableColumn yColumn)
		{
			if (null == table)
				throw new ArgumentNullException(nameof(table));
			if (null == rowSelection)
				throw new ArgumentNullException(nameof(rowSelection));

			ChildSetMember(ref _dataTable, new DataTableProxy(table));
			_groupNumber = groupNumber;
			ChildCloneToMember(ref _rangeOfRows, rowSelection);

			_independentVariables = new IReadableColumnProxy[1];
			_independentVariables[0] = ReadableColumnProxyBase.FromColumn(xColumn);

			_dependentVariables = new IReadableColumnProxy[1];
			_dependentVariables[0] = ReadableColumnProxyBase.FromColumn(yColumn);

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