-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from pnkraemer/pylint_filtsmooth
Pylint filtsmooth [WIP?]
- Loading branch information
Showing
8 changed files
with
61 additions
and
76 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
Utility functions for Gaussian filtering and smoothing. | ||
""" | ||
|
||
from probnum.filtsmooth.statespace import ( | ||
ContinuousModel, | ||
DiscreteModel, | ||
) | ||
|
||
|
||
def is_cont_disc(dynamod, measmod): | ||
"""Checks whether the state space model is continuous-discrete.""" | ||
dyna_is_cont = isinstance(dynamod, ContinuousModel) | ||
meas_is_disc = isinstance(measmod, DiscreteModel) | ||
return dyna_is_cont and meas_is_disc | ||
|
||
|
||
def is_disc_disc(dynamod, measmod): | ||
"""Checks whether the state space model is discrete-discrete.""" | ||
dyna_is_disc = isinstance(dynamod, DiscreteModel) | ||
meas_is_disc = isinstance(measmod, DiscreteModel) | ||
return dyna_is_disc and meas_is_disc |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
from .continuous import * | ||
from .discrete import * | ||
from .statespace import * | ||
|
||
# Public classes and functions. Order is reflected in documentation. | ||
__all__ = [ | ||
"ContinuousModel", | ||
"LinearSDEModel", | ||
"LTISDEModel", | ||
"DiscreteModel", | ||
"DiscreteGaussianModel", | ||
"DiscreteGaussianLinearModel", | ||
"DiscreteGaussianLTIModel", | ||
"generate_cd", | ||
"generate_dd", | ||
] |
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