Skip to main content
A type for representing a fuzzy integer interval of distances. The fuzzy interval is represented by four values of type Distance, each of which should be greater than or equal to the previous value.

Constructor

SignatureDescription
DistFuzzyInterval DistFuzzyInterval( Distance value )Constructor from a value of type Distance. Initializes all the four values with the “value” value.

Initialization

A variable of type DistFuzzyInterval may be initialized with an expression of type {d1, d2, d3, d4}, where d1, d2, d3, and d4 are values of type Distance. Example:
Distance d1 = 5dt;
DistFuzzyInterval distFuzzyInt = {d1, 200dt, 300dt, 5000dt};

Operators

OperatorDescription
+A binary addition operator that adds a value of type DistFuzzyInterval to a value of type Distance. Returns a value of type DistFuzzyInterval.
+A binary addition operator that adds a value of type DistFuzzyInterval to a value of type DistInterval. Returns a value of type DistFuzzyInterval.
-A binary subtraction operator that subtracts a value of type Distance from a value of type DistFuzzyInterval. Returns a value of type DistFuzzyInterval.
-A binary subtraction operator that subtracts a value of type DistFuzzyInterval from a value of type Distance. Returns a value of type DistFuzzyInterval.
-A binary subtraction operator that subtracts a value of type DistInterval from a value of type DistFuzzyInterval. Returns a value of type DistFuzzyInterval.
-A binary subtraction operator that subtracts a value of type DistFuzzyInterval from a value of type DistInterval. Returns a value of type DistFuzzyInterval.
*A binary multiplication operator that multiplies a value of type DistFuzzyInterval by a value of type Int. Returns a value of type DistFuzzyInterval.
*A binary multiplication operator that multiplies a value of type DistFuzzyInterval by a value of type DistInterval. Returns a value of type DistFuzzyInterval.
/A binary division operator that divides a value of type DistFuzzyInterval by a value of type Int. Returns a value of type DistFuzzyInterval.