$extrastylesheet
#include <mln/value/float01.hh>
Public Member Functions | |
float01 () | |
template<unsigned n> | |
float01 (const float01_< n > &val) | |
float01 (unsigned nbits, float val) | |
unsigned | nbits () const |
operator float () const | |
float01 & | set_nbits (unsigned nbits) |
const float01 | to_nbits (unsigned nbits) const |
float | value () const |
unsigned long | value_ind () const |
Protected Attributes | |
unsigned | nbits_ |
unsigned long | val_ |
Public Types | |
typedef Floating< void > | category |
typedef std::pair< unsigned, unsigned long > | enc |
typedef float | equiv |
typedef float01 | exact_t |
Class for floating values restricted to the interval [0..1] and discretized with n bits.
Definition at line 57 of file float01.hh.
mln::value::float01::float01 | ( | ) |
Ctor.
mln::value::float01::float01 | ( | const float01_< n > & | val | ) |
Ctor.
unsigned mln::value::float01::nbits | ( | ) | const |
Access to the encoding size.
mln::value::float01::operator float | ( | ) | const |
Conversion to float.
Return an equivalent gray encoded on nbits
bits.
float mln::value::float01::value | ( | ) | const |
Access to std type.
unsigned long mln::value::float01::value_ind | ( | ) | const |
Access to the position in the quantized interval.
|
protected |
Encoding size.
Definition at line 101 of file float01.hh.
|
protected |
Definition at line 104 of file float01.hh.
|
inherited |
Definition at line 64 of file floating.hh.
typedef std::pair<unsigned, unsigned long> mln::value::float01::enc |
Encoding associated type.
Definition at line 62 of file float01.hh.
typedef float mln::value::float01::equiv |
Equivalent associated type.
Definition at line 65 of file float01.hh.