Good morning to all,
I need any advice about a data structure suitable for defining, in
Java, a piecewise function, i.e a function like this:
F(t) = 1 if t in [t0,t1] or t[t2,t3] or.... [tn-1,tn]
0 otherwise.
where t0...tn are given without a specific rule (may be randomly choosed) and are integers.
Thank you in advance for your help.