private double Fraction(double attr) { if (attr < _min) return 0; if (attr > _max) return 1; return (attr - _min) / (_max - _min); }