Example #1
0
        public Dictionary <string, List <BeanPoint_internal> > GetPointsParClasseOrdonnees(List <BeanPoint_internal> p_points, int p_nbreClasses, enumModeSeuillage p_modeSeuillage)
        {
            Dictionary <string, List <BeanPoint_internal> > v_classes = new Dictionary <string, List <BeanPoint_internal> >();

            try
            {
                if (p_modeSeuillage == enumModeSeuillage.memeNombreDIndividus)
                {
                    v_classes = GetClassesOrdonnees_parIsoQuantite(p_points, p_nbreClasses);
                }
                else
                {
                    Dictionary <int, double> v_seuilsBas;
                    v_seuilsBas = GetSeuilBasClasses(p_points, p_nbreClasses, p_modeSeuillage);
                    v_classes   = GetClassesOrdonnees_parSeuilsDeValeur(p_points, v_seuilsBas);
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(v_classes);
        }
Example #2
0
        private Dictionary <int, double> GetSeuilBasClassesForPoints(List <BeanPoint_internal> p_points, int p_nbreClasses, enumModeSeuillage p_modeSeuillage)
        {
            Dictionary <int, double> v_seuils = new Dictionary <int, double>();

            try
            {
                switch (p_modeSeuillage)
                {
                case enumModeSeuillage.memeEspaceInterclasse:
                    double v_min = p_points.Min(c => c.p10_coord[2]);
                    double v_max = p_points.Max(c => c.p10_coord[2]);
                    v_seuils = GetSeuilBasClasses_memeEspaceInterclasse(p_nbreClasses, v_min, v_max);
                    break;

                default:
                    throw new Exception("Méthode " + p_modeSeuillage + " non implémentée.");
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(v_seuils);
        }
Example #3
0
        private Dictionary <int, double> GetSeuilBasClasses(List <BeanPoint_internal> p_points, int p_nbreClasses, enumModeSeuillage p_modeSeuillage)
        {
            Dictionary <int, double> v_seuils = new Dictionary <int, double>();

            try
            {
                switch (p_modeSeuillage)
                {
                case enumModeSeuillage.memeEspaceInterclasse:
                    v_seuils = GetSeuilBasClasses_memeEspaceInterclasse(p_points, p_nbreClasses);
                    break;

                default:
                    throw new Exception("Méthode " + p_modeSeuillage + " non implémentée.");
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(v_seuils);
        }
Example #4
0
 public void GetVisuPointsAlti(List <BeanPoint_internal> p_points, int p_nbreClasses, bool p_croissantSinonDecroissant, enumModeSeuillage p_methodeDeSeuillage, enumProgressionCouleurs p_progressionCouleurs, int p_alpha, int p_taillePointAutoSi0OuMoins)
 {
     try
     {
         int param_ratioTaillePoint = 100;
         int v_taillePoints         = p_taillePointAutoSi0OuMoins;
         if (p_taillePointAutoSi0OuMoins <= 0)
         {
             v_taillePoints = GetTailleAffichageDuPoint(p_points, param_ratioTaillePoint);
         }
         //
         Dictionary <string, List <BeanPoint_internal> > v_classifDesPoints;
         v_classifDesPoints = FVisualisationServices.createSeuillageServices().GetPointsParClasseOrdonnees(p_points, p_nbreClasses, p_methodeDeSeuillage);
         Dictionary <string, Color> v_tableCouleurs;
         v_tableCouleurs = FVisualisationServices.createVisualisationSpatialTraceServices().GetTableCouleursDegradees(v_classifDesPoints.Keys.ToList(), p_progressionCouleurs, p_alpha, p_croissantSinonDecroissant);
         //
         GetVisuPointsAlti(v_classifDesPoints, v_tableCouleurs, v_taillePoints);
     }
     catch (Exception)
     {
         throw;
     }
 }