Esempio n. 1
0
        private void generateSlopeModel()
        {
            slopeModel = new float[model.GetLength(0), model.GetLength(1)];

            SlopeAlgrotithm slopeAlgortihm;

            if (algorithmType == "MAXIMUM")
            {
                slopeAlgortihm = new SlopeMax(model);
            }
            else if (algorithmType == "AVERAGE")
            {
                slopeAlgortihm = new SlopeAverage(model);
            }
            else if (algorithmType == "HORN")
            {
                slopeAlgortihm = new SlopeAverage(model);
            }
            else
            {
                slopeAlgortihm = new SlopeAverage(model);
            }

            slopeModel = slopeAlgortihm.getSlopeModel();

            generateSlopeModelImage();
        }
        private void generateSlopeModel()
        {
            slopeModel = new float[model.GetLength(0), model.GetLength(1)];

            SlopeAlgrotithm slopeAlgortihm ;

            if (algorithmType == "MAXIMUM")
            {
                slopeAlgortihm = new SlopeMax(model);
            }
            else if (algorithmType == "AVERAGE")
            {
                slopeAlgortihm = new SlopeAverage(model);
            }
            else if (algorithmType == "HORN")
            {
                slopeAlgortihm = new SlopeAverage(model);
            }
            else
            {
                slopeAlgortihm = new SlopeAverage(model);
            }

            slopeModel = slopeAlgortihm.getSlopeModel();

            generateSlopeModelImage();
        }