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; }
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; } }
public void Clear() { pf = new PolyFunc(); Solutions.Clear(); Log.Clear(); }
public DihMethod() { pf = new PolyFunc(); Solutions = new List <double>(); Log = new List <string>(); }
public Lagranje() { pf = new PolyFunc(); Solutions = new List <double>(); Log = new List <string>(); }