eelbrain.NDVar.threshold

NDVar.threshold(v, tail=1, name=None)

Set all values below a threshold to 0.

Parameters:
  • v (scalar) – Threshold value.

  • tail (-1 | 0 | 1) – Tailedness. 1: set values below v to 0 (default); 0: set values between -v and v to 0; -1: set values above v to 0.

  • name (str) – Name of the output NDVar (default is the current name).