3838 NegativeBinomialNoise ,
3939 NegativeBinomialObservation ,
4040 PoissonNoise ,
41- VectorizedRV ,
4241)
4342from pyrenew .process import ARProcess , DifferencedProcess
4443from pyrenew .process .iidrandomsequence import IIDRandomSequence , StandardNormalSequence
4544from pyrenew .process .randomwalk import RandomWalk as ProcessRandomWalk
4645from pyrenew .process .randomwalk import StandardNormalRandomWalk
47- from pyrenew .randomvariable import DistributionalVariable , TransformedVariable
46+ from pyrenew .randomvariable import (
47+ DistributionalVariable ,
48+ TransformedVariable ,
49+ VectorizedVariable ,
50+ )
4851from test .test_helpers import ConcreteMeasurements
4952
5053# =============================================================================
@@ -92,11 +95,11 @@ def _make_measurements():
9295 -------
9396 instantiated object
9497 """
95- sensor_mode_rv = VectorizedRV (
98+ sensor_mode_rv = VectorizedVariable (
9699 name = "sensor_mode_rv" ,
97100 rv = DistributionalVariable ("mode" , dist .Normal (0 , 0.5 )),
98101 )
99- sensor_sd_rv = VectorizedRV (
102+ sensor_sd_rv = VectorizedVariable (
100103 name = "sensor_sd_rv" ,
101104 rv = DistributionalVariable ("sd" , dist .TruncatedNormal (0.3 , 0.15 , low = 0.1 )),
102105 )
@@ -115,11 +118,11 @@ def _make_hierarchical_normal_noise():
115118 -------
116119 instantiated object
117120 """
118- sensor_mode_rv = VectorizedRV (
121+ sensor_mode_rv = VectorizedVariable (
119122 name = "sensor_mode_rv" ,
120123 rv = DistributionalVariable ("mode" , dist .Normal (0 , 0.5 )),
121124 )
122- sensor_sd_rv = VectorizedRV (
125+ sensor_sd_rv = VectorizedVariable (
123126 name = "sensor_sd_rv" ,
124127 rv = DistributionalVariable ("sd" , dist .TruncatedNormal (0.3 , 0.15 , low = 0.1 )),
125128 )
@@ -455,12 +458,12 @@ def test_random_variable_rejects_invalid_name(bad_name):
455458 pytest .param (_make_counts_by_subpop (), "test_subpop" , id = "CountsBySubpop" ),
456459 pytest .param (_make_measurements (), "test_ww" , id = "ConcreteMeasurements" ),
457460 pytest .param (
458- VectorizedRV (
461+ VectorizedVariable (
459462 name = "test_vec" ,
460463 rv = DistributionalVariable ("inner" , dist .Normal (0 , 1 )),
461464 ),
462465 "test_vec" ,
463- id = "VectorizedRV " ,
466+ id = "VectorizedVariable " ,
464467 ),
465468 ],
466469)
0 commit comments