oops
Some checks are pending
CI / testing (macos-latest) (push) Waiting to run
CI / testing (ubuntu-latest) (push) Waiting to run
CI / testing (windows-latest) (push) Waiting to run
CI / linting (macos-latest) (push) Waiting to run
CI / linting (ubuntu-latest) (push) Waiting to run
CI / linting (windows-latest) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / coverage (ubuntu-latest) (push) Waiting to run
Some checks are pending
CI / testing (macos-latest) (push) Waiting to run
CI / testing (ubuntu-latest) (push) Waiting to run
CI / testing (windows-latest) (push) Waiting to run
CI / linting (macos-latest) (push) Waiting to run
CI / linting (ubuntu-latest) (push) Waiting to run
CI / linting (windows-latest) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / coverage (ubuntu-latest) (push) Waiting to run
This commit is contained in:
parent
ac53538207
commit
6113e93f2c
1 changed files with 3 additions and 3 deletions
|
|
@ -33,8 +33,8 @@ impl<T: Clone> InterpolationMethod<T> for Constant {
|
||||||
/// If the signal does not have a value at a given point, a fixed value is returned
|
/// If the signal does not have a value at a given point, a fixed value is returned
|
||||||
pub struct DefaultFalse;
|
pub struct DefaultFalse;
|
||||||
|
|
||||||
impl<Bool> InterpolationMethod<Bool> for DefaultFalse {
|
impl<bool> InterpolationMethod<bool> for DefaultFalse {
|
||||||
fn at(a: &Sample<Bool>, b: &Sample<Bool>, time: Duration) -> Option<Bool> {
|
fn at(a: &Sample<bool>, b: &Sample<bool>, time: Duration) -> Option<bool> {
|
||||||
if time == b.time {
|
if time == b.time {
|
||||||
Some(b.value.clone())
|
Some(b.value.clone())
|
||||||
} else if a.time <= time && time < b.time {
|
} else if a.time <= time && time < b.time {
|
||||||
|
|
@ -44,7 +44,7 @@ impl<Bool> InterpolationMethod<Bool> for DefaultFalse {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn find_intersection(_a: &Neighborhood<Bool>, _b: &Neighborhood<Bool>) -> Option<Sample<Bool>> {
|
fn find_intersection(_a: &Neighborhood<bool>, _b: &Neighborhood<bool>) -> Option<Sample<bool>> {
|
||||||
// The signals must be either constant or colinear. Thus, return None.
|
// The signals must be either constant or colinear. Thus, return None.
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue