feldob / InPUT

A descriptive and programming language independent format and API for the simplified configuration, documentation, and design of computer experiments.
7 stars 25 forks source link

Exclusive endpoints are not excluded for floats #48

Open finkn opened 10 years ago

finkn commented 10 years ago

When defining a floating point parameter with exclusive limits, those limits aren't actually excluded. DesignSpace.next() will generate them (when float, but not double), and Design.setValue() will accept them (whether float or double).

See exclusiveFloatIsInclusive in https://github.com/finkn/InPUTspec/blob/master/main/src/net/finkn/inputspec/v050/SimpleSingleRangeNextTest.java and https://github.com/finkn/InPUTspec/blob/master/main/src/net/finkn/inputspec/v050/RangeTest.java for details.