X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=interval.h;h=879cc74f1a0b2564fc493bf81adde097aefcd5f7;hb=aed34255065b18c445d096f51bd2091833810a81;hp=57810f604515fc3160cd39595cd44946982b78bb;hpb=d922ad61d35e9a6996730bec24b16f8bf7bc426c;p=folded-ctf.git diff --git a/interval.h b/interval.h index 57810f6..879cc74 100644 --- a/interval.h +++ b/interval.h @@ -12,10 +12,18 @@ // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // // // -// Written by Francois Fleuret, (C) IDIAP // +// Written by Francois Fleuret // +// (C) Idiap Research Institute // +// // // Contact for comments & bug reports // /////////////////////////////////////////////////////////////////////////// +/* + + An interval class. + + */ + #ifndef INTERVAL_H #define INTERVAL_H @@ -39,18 +47,9 @@ public: return x >= min && x < max; } - inline void include(scalar_t x) { - if(x < min) min = x; - if(x > max) max = x; - } - inline scalar_t middle() { return (min + max) / 2; } - - inline scalar_t length() { - return max - min; - } }; ostream &operator << (ostream &out, const Interval &i);