v1.0.4
Fix to NSPPThinning sampling approach.
Fixed
NSPPThinning.sample()fixed so thattfalls into the the time interval where the candidate arrival will occur. This allows the correct acceptance probability to be used. Prior to this fix t was occuring in the current time interval.
Changed
- NSPPThinning now pre-computes the acceptance probabilities on initialisation. This is means that there are no repeated calculations (divisions) during a simulation run and lookup via
numpyrather thanpandas. - NSPPThinning now validates the
dataparameter: is it aDataFrame (TypeError), does it contain the correct columns (ValueError), and is it empty/have more than 1 row (ValueEror`) .