// Generar restricciones public static Restriction[] generate(Circle[] circles, double error) { double absoluteError = Restriction.getAbsoluteError(error, circles.Length); Restriction[] restrictions = new Restriction[circles.Length]; for (int i = 0; i < restrictions.Length; ++i) { restrictions[i] = new Restriction(circles[i], absoluteError); } return(restrictions); }
// Generar restricciones public static Restriction[] generate(Circle[] circles, double e, bool rel) { double error = rel ? Restriction.getRelativeError(e, circles.Length) : Restriction.getAbsoluteError(e, circles.Length); //double error = e; Console.WriteLine(error); Restriction[] restrictions = new Restriction[circles.Length]; for (int i = 0; i < restrictions.Length; ++i) { restrictions[i] = new Restriction(circles[i], error); } return(restrictions); }