Source code for pyFTS.models.nonstationary.perturbation

"""
Pertubation functions for Non Stationary Fuzzy Sets
"""

import numpy as np
from pyFTS import *
from pyFTS.common import FuzzySet, Membership


[docs]def linear(x, parameters): return np.polyval(parameters, x)
[docs]def polynomial(x, parameters): return np.polyval(parameters, x)
[docs]def exponential(x, parameters): return np.exp(x*parameters[0])
[docs]def periodic(x, parameters): return parameters[0] * np.sin(x * parameters[1])