Ejemplo n.º 1
0
 public Monom(KindOfMonom Monom, double ParamaterA, double ParamaterB)
 {
     if (Monom != KindOfMonom.Constant)
     {
         a = ParamaterA;
         b = ParamaterB;
     }
     else
     {
         c = ParamaterA;
     }
     monom = Monom;
 }
Ejemplo n.º 2
0
 public Monom(KindOfMonom ThisKindOfMonom, double ParamaterA, double ParamaterB)
 {
     if (ThisKindOfMonom != KindOfMonom.Constant)
     {
         mA = ParamaterA;
         mB = ParamaterB;
         _a = DoubleToInt(ParamaterA);
         _b = DoubleToInt(ParamaterB);
     }
     else
     {
         mC = DoubleToInt(ParamaterA);
         _c = DoubleToInt(ParamaterA);
     }
     this.ThisKindOfMonom = ThisKindOfMonom;
 }
Ejemplo n.º 3
0
        public void Interpolate(List <Point> Points, KindOfMonom Monoms, bool MustBeCorrect)
        {
            if (MustBeCorrect)
            {
                CheckIfOneCanInterpolate(Points);
            }
            if (Monoms == KindOfMonom.Constant)
            {
                throw new Exception("One can't interpolate array of points only with constants, one can but it wont be good... don't select constants, pls, select line it's good, or sine");
            }
            List <KindOfMonom> Monomz = new List <KindOfMonom>(Points.Count);

            Monomz.Add(KindOfMonom.Constant);
            for (int i = 1; i < Points.Count; i++)
            {
                Monomz.Add(Monoms);
            }
            Interpolate(Points, Monomz);
        }
Ejemplo n.º 4
0
 public Monom(double Constant)
 {
     monom = KindOfMonom.Constant;
 }
Ejemplo n.º 5
0
 public void Interpolate(List <Point> Points, KindOfMonom Monoms)
 {
     Interpolate(Points, Monoms, false);
 }