示例#1
0
 public SerializedFunc(PolyFunc pf, string eps, string xMin, string xMax, string yMin, string yMax)
 {
     this.pf   = pf;
     this.eps  = eps;
     this.xMin = xMin;
     this.xMax = xMax;
     this.yMin = yMin;
     this.yMax = yMax;
 }
示例#2
0
        public void Read(string fileName)
        {
            XmlSerializer deserializer = new XmlSerializer(typeof(SerializedFunc));

            using (TextReader textReader = new StreamReader(fileName))
            {
                SerializedFunc sf = (SerializedFunc)deserializer.Deserialize(textReader);
                this.pf   = sf.pf;
                this.eps  = sf.eps;
                this.xMin = sf.xMin;
                this.xMax = sf.xMax;
                this.yMax = sf.yMax;
                this.yMin = sf.yMin;
            }
        }
示例#3
0
 public void Clear()
 {
     pf = new PolyFunc();
     Solutions.Clear();
     Log.Clear();
 }
示例#4
0
 public DihMethod()
 {
     pf        = new PolyFunc();
     Solutions = new List <double>();
     Log       = new List <string>();
 }
示例#5
0
 public Lagranje()
 {
     pf        = new PolyFunc();
     Solutions = new List <double>();
     Log       = new List <string>();
 }