# bounded_arg.rl ## Class BInt ```text A integer with a max and min, so that enumerate will return the range of values between the two. Machine learning serialization will serialize this class as a one-hot vector ``` ### Fields - `Int value` ### Methods - **Function**: `init() ` - **Function**: `equal(Int other) -> Bool` - **Function**: `equal(BInt other) -> Bool` - **Function**: `less(BInt other) -> Bool` - **Function**: `less(Int other) -> Bool` - **Function**: `greater(BInt other) -> Bool` - **Function**: `greater(Int other) -> Bool` - **Function**: `greater_equal(BInt other) -> Bool` - **Function**: `greater_equal(Int other) -> Bool` - **Function**: `less_equal(BInt other) -> Bool` - **Function**: `less_equal(Int other) -> Bool` - **Function**: `assign(Int other) ` - **Function**: `not_equal(Int other) -> Bool` - **Function**: `not_equal(BInt other) -> Bool` - **Function**: `add(Int val) -> BInt` - **Function**: `add(BInt other) -> BInt` - **Function**: `mul(BInt other) -> BInt` - **Function**: `reminder(Int val) -> BInt` - **Function**: `reminder(BInt val) -> BInt` - **Function**: `mul(Int val) -> BInt` - **Function**: `sub(BInt other) -> BInt` - **Function**: `sub(Int val) -> BInt` ## Class LinearlyDistributedInt ```text A integer with a max and min, so that enumerate will return the range of values between the two, and machine learning serialization will serialize it as a single float with normalized value (real_value - ((max - min) / 2)) / (max - min). This class makes sense when it is used to rappresent integers that appear with the same frequency for each possible value. ``` ### Fields - `Int value` ### Methods - **Function**: `init() ` - **Function**: `equal(Int other) -> Bool` - **Function**: `equal(LinearlyDistributedInt other) -> Bool` - **Function**: `less(LinearlyDistributedInt other) -> Bool` - **Function**: `less(Int other) -> Bool` - **Function**: `greater(LinearlyDistributedInt other) -> Bool` - **Function**: `greater(Int other) -> Bool` - **Function**: `greater_equal(LinearlyDistributedInt other) -> Bool` - **Function**: `greater_equal(Int other) -> Bool` - **Function**: `less_equal(LinearlyDistributedInt other) -> Bool` - **Function**: `less_equal(Int other) -> Bool` - **Function**: `assign(Int other) ` - **Function**: `not_equal(Int other) -> Bool` - **Function**: `not_equal(LinearlyDistributedInt other) -> Bool` - **Function**: `add(Int val) -> LinearlyDistributedInt` - **Function**: `add(LinearlyDistributedInt other) -> LinearlyDistributedInt` - **Function**: `mul(LinearlyDistributedInt other) -> LinearlyDistributedInt` - **Function**: `reminder(Int val) -> LinearlyDistributedInt` - **Function**: `reminder(LinearlyDistributedInt val) -> LinearlyDistributedInt` - **Function**: `mul(Int val) -> LinearlyDistributedInt` - **Function**: `sub(LinearlyDistributedInt other) -> LinearlyDistributedInt` - **Function**: `sub(Int val) -> LinearlyDistributedInt` ## Free Functions - **Function**: `max(BInt l, BInt r) -> BInt` - **Function**: `min(BInt l, BInt r) -> BInt` - **Function**: `append_to_vector(BInt to_add, Vector output) ` - **Function**: `parse_from_vector(BInt to_add, Vector output, Int index) -> Bool` - **Function**: `append_to_string(BInt to_add, String output) ` - **Function**: `parse_string(BInt to_add, String input, Int index) -> Bool` - **Function**: `enumerate(BInt to_add, Vector> output) ` - **Function**: `tensorable_warning(BInt x, String out) ` - **Function**: `max(LinearlyDistributedInt l, LinearlyDistributedInt r) -> LinearlyDistributedInt` - **Function**: `min(LinearlyDistributedInt l, LinearlyDistributedInt r) -> LinearlyDistributedInt` - **Function**: `append_to_vector(LinearlyDistributedInt to_add, Vector output) ` - **Function**: `parse_from_vector(LinearlyDistributedInt to_add, Vector output, Int index) -> Bool` - **Function**: `append_to_string(LinearlyDistributedInt to_add, String output) ` - **Function**: `parse_string(LinearlyDistributedInt to_add, String input, Int index) -> Bool` - **Function**: `enumerate(LinearlyDistributedInt to_add, Vector> output) ` - **Function**: `tensorable_warning(LinearlyDistributedInt x, String out) `