Added curve filtering functions using numpy (if available)