Skip to content

v1.0.4

Choose a tag to compare

@TomMonks TomMonks released this 25 Apr 16:16
b61ec0e

Fix to NSPPThinning sampling approach.

Fixed

  • NSPPThinning.sample() fixed so that t falls 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 numpy rather than pandas.
  • NSPPThinning now validates the data parameter: is it a DataFrame (TypeError), does it contain the correct columns (ValueError), and is it empty/have more than 1 row (ValueEror`) .