cutoff

Contents

cutoff#

abtem.integrals.cutoff(func, tolerance, a, b)[source]#

Calculate the point where a function becomes lower than a given tolerance within a given bracketing interval.

Parameters:
  • func (callable) – The function to calculate the cutoff for.

  • tolerance (float) – The tolerance to calculate the cutoff for.

  • a (float) – One end of the bracketing interval.

  • b (float) – The other end of the bracketing interval.

Returns:

cutoff

Return type:

float