public TheoreticalModelAnisotropy(TheoreticalModel theoretical,AnisotropyValues aniso) { this.theoretical = theoretical; this.aniso = aniso; // theoretical.FitValues(false, true, true); CheckDirections(); }
public void SetAnisotropy(AnisotropyValues value) { this.anisotroy = value; if (value != null) { uxAngle2.Text = anisotroy.AngDip2.ToString(); uxAngle.Text = anisotroy.Azimuth.ToString(); uxTolerance.Text = anisotroy.Tolerance.ToString(); uxBandwidth.Text = anisotroy.BandWidth.ToString(); } }
private void StartKriging() { dataK = new Kriging(this._data, 6); spatial = new SpatialContinuity(dataK.GetDataSource()); anisotropy = new AnisotropyValues(spatial); semiGraph = new SemivarianceCovarianceGraph(zedGraphControl1, spatial); semiGraph.Graph(); theoretical = new TheoreticalModel(spatial); IKrigingModel model = theoretical.GetFunctionDefault(); semiGraph.DrawCurve(theoretical.GetFunctionDefault()); theoreticalModelControl1.TheoreticalModel = theoretical; kriggingResult.Field = this._field; kriggingResult.Extent = JsonConvert.SerializeObject(this._extent); kriggingResult.Clip = JsonConvert.SerializeObject(this._clip); }
private void Spatial_ChangedLagParameter(object sender, EventArgs e) { // spatial= (SpatialContinuity)sender; uxContinuity.ValuesMinMax = new double[2] { 0, spatial.SemivarianceStatistic.Max }; uxContinuity.SetSurface(spatial.Surface(Path.GetTempPath() + "\\t2.bgd")); semiGraph.Spatial = spatial; semiGraph.Graph(); theoretical.Spatial = spatial; IKrigingModel model = theoretical.GetFunctionDefault(); semiGraph.DrawCurve(theoretical.GetFunctionDefault()); theoreticalModelControl1.TheoreticalModel = theoretical; anisotropy = new AnisotropyValues(spatial); anisotropyControl1.SetAnisotropy(anisotropy); uxContinuity.SetLayer(spatial.InfluenceZone(theoreticalModelControl1.MajorRange, theoreticalModelControl1.MinorRange, theoreticalModelControl1.Azimuth)); }
private void StartKriging() { //8--> used field if (env.Method == "Ordinary Kriging") dataK = new Kriging(env.Data, 6); if (env.Method == "Simple Kriging") dataK = new SimpleKriging(env.Data, 6); if (env.Method == "Universal Kriging") dataK = new UniversalKriging(env.Data, 6); spatial = new SpatialContinuity(dataK.GetDataSource()); anisotropy = new AnisotropyValues(spatial); anisotropyControl1.SetAnisotropy(anisotropy); spatial.ChangedLagParameter += new EventHandler(Spatial_ChangedLagParameter); anisotropy.ChangedAnisotropyParameter += new EventHandler(Spatial_ChangedAnisotropyParameter); uxContinuity.ValuesMinMax = new double[2] { 0, spatial.SemivarianceStatistic.Max }; uxLag.Spatial = spatial; uxLag.NumberOfLags = spatial.NumberOfLags.ToString(); uxLag.LagSize = spatial.LagSize.ToString(); uxLag.Tolerance = spatial.LagValue.tolerance.ToString(); uxLag.EnableUpdateLag(); uxContinuity.SetSurface(spatial.Surface(Path.GetTempPath() + "\\t2.bgd")); semiGraph = new SemivarianceCovarianceGraph(zedGraphControl1, spatial); semiGraph.Graph(); theoretical = new TheoreticalModel(spatial); IKrigingModel model = theoretical.GetFunctionDefault(); semiGraph.DrawCurve(theoretical.GetFunctionDefault()); theoreticalModelControl1.TheoreticalModel = theoretical; uxContinuity.SetLayer(spatial.InfluenceZone(theoretical.KrigingModel.Range, theoretical.KrigingModel.Range, 0)); theoretical.ChangedKriginParameter += new EventHandler(theoretical_ChangedKriginParameter); theoreticalModelControl1.ChangedAnisotropyParameter += new EventHandler(theoreticalModelControl1_ChangedAnisotropyParameter); }