Esempio n. 1
0
        private Model()
        {
            SelectedPoints.Changed
                += () => RaisePropertyChanged("SelectedPoints");

            Reducers.Add(new ReducerRecord(
                             "Iterated Inverse Elevation",
                             "inverse-elevation",
                             new ReducerFactory <IteratedInverseElevationReducer>(),
                             null
                             ));
            Reducers.Add(new ReducerRecord(
                             "Iterated Optimal",
                             "optimal",
                             new ReducerFactory <IteratedOptimalReducer>(),
                             null
                             ));
            Reducers.Add(new ReducerRecord(
                             "Hermite Interpolation",
                             "hermite",
                             new ReducerFactory <HermiteReducer>(),
                             new ConstrainedReducerView()
                             ));
            Reducers.Add(new ReducerRecord(
                             "Least Squares",
                             "least-squares",
                             new ReducerFactory <LeastSquaresReducer>(),
                             new ConstrainedReducerView()
                             ));
        }
Esempio n. 2
0
        public object Clone()
        {
            var dic = new Reducers();

            foreach (var pair in this)
            {
                dic.Add(pair.Key, pair.Value);
            }
            return(dic);
        }