Skip to content

Commit

Permalink
added tests for interval integration
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrizzo committed Mar 5, 2016
1 parent e484df7 commit 9c9bae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion catsim/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ class IntervalIntegrationSelector(Selector):
.. math:: argmax_{i \\in I} \\int_{\\hat\\theta - \\delta}^{\\hat\\theta - \\delta}I_i(\\hat\\theta)
:param interval: the interval of the integral. If no interval is passed, the
integral is calculated from :math:`[-\\inf, \\inf]`.
integral is calculated from :math:`[-\\infty, \\infty]`.
"""

def __init__(self, interval: float=None):
Expand Down
4 changes: 2 additions & 2 deletions catsim/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from catsim.simulation import Simulator
from catsim.cat import generate_item_bank
from catsim.stopping import MaxItemStopper, MinErrorStopper
from catsim.selection import MaxInfoSelector, ClusterSelector, LinearSelector, RandomSelector, AStratifiedBBlockingSelector, MaxInfoStratificationSelector, MaxInfoBBlockingSelector, AStratifiedSelector, The54321Selector, RandomesqueSelector
from catsim.selection import MaxInfoSelector, ClusterSelector, LinearSelector, RandomSelector, AStratifiedBBlockingSelector, MaxInfoStratificationSelector, MaxInfoBBlockingSelector, AStratifiedSelector, The54321Selector, RandomesqueSelector, IntervalIntegrationSelector
from catsim.initialization import RandomInitializer, FixedPointInitializer
from catsim.estimation import HillClimbingEstimator, DifferentialEvolutionEstimator, FMinEstimator

Expand Down Expand Up @@ -96,7 +96,7 @@ def test_simulations():
),
FixedPointInitializer(0)
]
infinite_selectors = [MaxInfoSelector(), RandomSelector()]
infinite_selectors = [MaxInfoSelector(), RandomSelector(), IntervalIntegrationSelector(0.3)]
finite_selectors = [
LinearSelector(
numpy.random.randint(
Expand Down

0 comments on commit 9c9bae8

Please sign in to comment.