Пример #1
0
        public bool Load(string field)
        {

            _check = new CheckDataInput(this._selectedDataset, field, Transformation, filter);

            string[] values = _check.LoadPoints(true);

            this._data = _check.data;

            if (_data == null) return false;

            if (_data.Features.Count < 7)
            {
                return false;
            }
            if (values.Length == 0) return true;
            if (values[1] != null)
            {
                return false;
            }

            if (values[0] != null)
            {
                return true;
            }

            return true;
        }
Пример #2
0
        public bool Load(int num)
        {

            if (_originalData.FeatureType == FeatureType.Line)
                _originalData = ConvertToPoints(_originalData);

            if (this.field == null || this.Transformation == null)
            {
                check = new CheckDataInput(_originalData, FieldValue, TransformationValue, this.filter);
            }
            else
            {
                check = new CheckDataInput(_originalData, Field, Transformation, this.filter);
            }
            string[] values = check.LoadPoints(uxCheck.Checked);

            this.data = check.data;

            if (data == null) return false;

            if (data.Features.Count < num)
            {
                MessageBox.Show("It is require at least " + num.ToString() + " points");
                return false;
            }


            if (values[1] != null)
            {
                MessageBox.Show("Transformation problem (Not zero values allowed)");
                return false;
            }

            if (values[0] != null)
            {
                MessageBox.Show("The mean will be applied in the duplicate points ");
                return true;
            }

            return true;

        }
Пример #3
0
        public bool Load(string filter)
        {

            if (_originalData.FeatureType == FeatureType.Line)
                _originalData = ConvertToPoints(_originalData);



            CheckDataInputFilter check;
            if (this.field == null || this.Transformation == null)
            {
                check = new CheckDataInputFilter(_originalData, FieldValue, TransformationValue, this.filter);
            }
            else
            {
                check = new CheckDataInputFilter(_originalData, Field, Transformation, this.filter);
            }


            // CheckDataInputFilter check = new CheckDataInputFilter(_originalData, Field, Transformation, this.filter);
            check.Filterfields = filter;
            string[] values = check.LoadPoints(uxCheck.Checked);
            this.check = check;
            this.data = check.data;

            if (data == null) return false;

            if (data.Features.Count < 7)
            {
                MessageBox.Show("It is needed more than seven points");
                return false;
            }

            if (values[1] != null)
            {
                MessageBox.Show("Transformation problem (Not zero values allowed)");
                return false;
            }

            if (values[0] != null)
            {
                MessageBox.Show("The mean will be applied in the duplicate points ");
                return true;
            }

            return true;
        }
 public CalculateErrorsCrossValidation(IFeatureSet data,CheckDataInput check)
 { 
   this.data=data;
   this.check = check;
 }