コード例 #1
0
        public static double VitesseMoyDroite(List <DataPosition> data, ref double peakV, double temps)
        {
            double[,] tabSomme;
            double[] tabVitesse;
            //double[,] tabSomme2;
            int tabLong;

            tabSomme = SommeTemps(data, temps);

            tabLong = tabSomme.Length / 2;
            //tabSomme2 = new double[2, tabLong - 20];

            //for (int i = 0; i < tabLong; i++)
            //{
            //    if ((i > 9) && (i < tabLong - 21))
            //    {
            //        tabSomme2[0, i] = tabSomme[0, i];
            //        tabSomme2[1, i] = tabSomme[1, i];
            //    }

            //}

            tabVitesse = Ax_Generique.DistancePark(tabSomme);

            peakV = VitessePeak(tabVitesse);

            return(VitesseMoyenne(tabVitesse));    // vitesse moyenne
        }
コード例 #2
0
ファイル: Ax_Position.cs プロジェクト: haddHub/Pdr_Action
        /// <summary>
        /// Calculer la distance Réelle
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static double Distance(List <DataPosition> data)
        {
            double[,] tabSommeAbs;
            double[] tabDistance;

            tabSommeAbs = Somme(data);
            tabDistance = Ax_Generique.DistancePark(tabSommeAbs);

            return(Ax_Generique.DistanceReelle(tabDistance));
        }