public void SetParameter(ParameterInterpolator par) { this.par = par; this.value = par.Value; this.type = par.Type; this.uxValue.Text = this.value.ToString(); if (par.Type!= null) this.uxMethod.Text = par.Type; }
new public void SetParameters(ParameterInterpolator parameters) { this.order = parameters.Index; if (order >= 1 || order <= 3) { serie = SerieCoef(order); GenerateMatrix(order, this.npoints, this.Kpoints); } }
new public void SetParameters(ParameterInterpolator parameters) { this.weigth = parameters.Value; }
new public ParameterInterpolator GetParameters() { ParameterInterpolator par = new ParameterInterpolator(); par.Value= this.weigth; return par; }
public void SetParameters(ParameterInterpolator parameters) { return; }
public ParameterDeterministic() { InitializeComponent(); par = new ParameterInterpolator(); }
new public ParameterInterpolator GetParameters() { ParameterInterpolator par = new ParameterInterpolator(); par.Index = this.order; return par; }
private void StartInterpolation() { /*Inverse Distance Weight (IDW) Radial Basis Functions Local Polynomial Interpolation Global Polynomial Interpolation */ this.uxOperationsMap1.SetProjection(env.OriginalData.Projection); if (env.Method == "Inverse Distance Weighted (IDW)") { if (!env.Load(2)) return; } else { if (!env.Load(7)) return; } env.UpdateWorkField(0); uxOutputRaster1.Path = env.PathFolder; uxOutputRaster1.NameOutput = env.Layer + "_" + uxTypeOfMethod2.Text; if (env.Method == "Inverse Distance Weighted (IDW)") { inter = new IDW(env.Data, 6); uxParameterDeterministic1.SetMethod("IDW"); ParameterInterpolator par = new ParameterInterpolator(); par.Value = 2; uxParameterDeterministic1.SetParameter(par); inter.SetParameters(uxParameterDeterministic1.GetParameter()); uxSearchNeighborhoodControl1.Visible = true; // DataSourceInterpolators datasource= idw.; ConfigSearchControl(inter); ConfigureOperationParametersInterpoltors(); InterpolatePrevious(); } if (env.Method == "Local Polynomial Interpolation") { inter = new LocalTrend(env.Data, 6,1); uxParameterDeterministic1.SetMethod("local"); uxSearchNeighborhoodControl1.Visible = true; ParameterInterpolator par = new ParameterInterpolator(); par.Index = 1; uxParameterDeterministic1.SetParameter(par); inter.SetParameters(uxParameterDeterministic1.GetParameter()); uxSearchNeighborhoodControl1.Visible = true; // DataSourceInterpolators datasource= idw.; ConfigSearchControl(inter); ConfigureOperationParametersInterpoltors(); InterpolatePrevious(); } if (env.Method == "Global Polynomial Interpolation") { inter = new Trend(env.Data, 6,1); uxParameterDeterministic1.SetMethod("Global"); uxSearchNeighborhoodControl1.Visible = false; ParameterInterpolator par = new ParameterInterpolator(); par.Index = 1; uxParameterDeterministic1.SetParameter(par); inter.SetParameters(uxParameterDeterministic1.GetParameter()); // DataSourceInterpolators datasource= idw.; ConfigureOperationParametersInterpoltors(); InterpolatePrevious(); } uxOutputInterpolation.DataSource = env.Data.DataTable; }