edits to allow GA, scaling filter slopes based on fc and calculating integral numerically