-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename SmallPiecewiseBuilder.add -> add_overlay and return Self
As I have so far decided to make the SmallPiecewiseBuilder consume itself on build(), I should make the add function compatible with such use. Operating on self by reference and returning self reference does not permit the final build() to consume the Builder. Second, I renamed add -> add_overlay, in an attempt to clarify the behavior - in which new ValueOverIntervals (should they overlap in Domain with existing defined Domain) over-write the value (overlay). E.g. If the Builder already contains an Unbounded interval with value 5.0, and a new add_overlay gives a value of -1.0 for the closed interval [1, 4] -> then the Builder should contain three ValueOverIntervals as a result of the operation: [-inf, 1) @ 5.0 [1, 4] @ -1.0 (4, inf) @ 5.0
- Loading branch information
1 parent
18a0315
commit 6b9fb41
Showing
1 changed file
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters