Filter property of pca object can be a function_handle