Skip to content

Commit

Permalink
fixed naming
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Dec 3, 2024
1 parent ff51725 commit 4a588f0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/nemos/basis/basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def __init__(
>>> order = 3
>>> bspline_basis = ConvBSpline(n_basis_funcs, order=order, window_size=10)
>>> sample_points = linspace(0, 1, 100)
>>> basis_functions = bspline_basis.compute_features(sample_points)
>>> features = bspline_basis.compute_features(sample_points)
"""
ConvBasisMixin.__init__(self, window_size=window_size, conv_kwargs=conv_kwargs)
BSplineBasis.__init__(
Expand Down Expand Up @@ -340,7 +340,7 @@ def __init__(
>>> order = 3
>>> cyclic_bspline_basis = EvalCyclicBSpline(n_basis_funcs, order=order)
>>> sample_points = linspace(0, 1, 100)
>>> basis_functions = cyclic_bspline_basis.compute_features(sample_points)
>>> features = cyclic_bspline_basis.compute_features(sample_points)
"""
EvalBasisMixin.__init__(self, bounds=bounds)
CyclicBSplineBasis.__init__(
Expand Down Expand Up @@ -458,7 +458,7 @@ def __init__(
>>> order = 3
>>> cyclic_bspline_basis = ConvCyclicBSpline(n_basis_funcs, order=order, window_size=10)
>>> sample_points = linspace(0, 1, 100)
>>> basis_functions = cyclic_bspline_basis.compute_features(sample_points)
>>> features = cyclic_bspline_basis.compute_features(sample_points)
"""
ConvBasisMixin.__init__(self, window_size=window_size, conv_kwargs=conv_kwargs)
CyclicBSplineBasis.__init__(
Expand Down Expand Up @@ -594,7 +594,7 @@ def __init__(
>>> order = 3
>>> mspline_basis = EvalMSpline(n_basis_funcs, order=order)
>>> sample_points = linspace(0, 1, 100)
>>> basis_functions = mspline_basis.compute_features(sample_points)
>>> features = mspline_basis.compute_features(sample_points)
"""
EvalBasisMixin.__init__(self, bounds=bounds)
MSplineBasis.__init__(
Expand Down Expand Up @@ -729,7 +729,7 @@ def __init__(
>>> order = 3
>>> mspline_basis = ConvMSpline(n_basis_funcs, order=order, window_size=10)
>>> sample_points = linspace(0, 1, 100)
>>> basis_functions = mspline_basis.compute_features(sample_points)
>>> features = mspline_basis.compute_features(sample_points)
"""
ConvBasisMixin.__init__(self, window_size=window_size, conv_kwargs=conv_kwargs)
MSplineBasis.__init__(
Expand Down Expand Up @@ -844,7 +844,7 @@ class EvalRaisedCosineLinear(
>>> raised_cosine_basis = EvalRaisedCosineLinear(n_basis_funcs)
>>> sample_points = np.random.randn(100)
>>> # convolve the basis
>>> basis_functions = raised_cosine_basis.compute_features(sample_points)
>>> features = raised_cosine_basis.compute_features(sample_points)
"""

def __init__(
Expand Down Expand Up @@ -958,7 +958,7 @@ class ConvRaisedCosineLinear(
>>> raised_cosine_basis = ConvRaisedCosineLinear(n_basis_funcs, window_size=10)
>>> sample_points = np.random.randn(100)
>>> # convolve the basis
>>> basis_functions = raised_cosine_basis.compute_features(sample_points)
>>> features = raised_cosine_basis.compute_features(sample_points)
"""

def __init__(
Expand Down Expand Up @@ -1088,7 +1088,7 @@ def __init__(
>>> raised_cosine_basis = EvalRaisedCosineLog(n_basis_funcs)
>>> sample_points = np.random.randn(100)
>>> # convolve the basis
>>> basis_functions = raised_cosine_basis.compute_features(sample_points)
>>> features = raised_cosine_basis.compute_features(sample_points)
"""
EvalBasisMixin.__init__(self, bounds=bounds)
RaisedCosineBasisLog.__init__(
Expand Down Expand Up @@ -1212,7 +1212,7 @@ def __init__(
>>> raised_cosine_basis = ConvRaisedCosineLog(n_basis_funcs, window_size=10)
>>> sample_points = np.random.randn(100)
>>> # convolve the basis
>>> basis_functions = raised_cosine_basis.compute_features(sample_points)
>>> features = raised_cosine_basis.compute_features(sample_points)
"""
ConvBasisMixin.__init__(self, window_size=window_size, conv_kwargs=conv_kwargs)
RaisedCosineBasisLog.__init__(
Expand Down Expand Up @@ -1320,7 +1320,7 @@ def __init__(
>>> ortho_basis = EvalOrthExponential(n_basis_funcs, decay_rates)
>>> sample_points = linspace(0, 1, 100)
>>> # evaluate the basis
>>> basis_functions = ortho_basis.compute_features(sample_points)
>>> features = ortho_basis.compute_features(sample_points)
"""
EvalBasisMixin.__init__(self, bounds=bounds)
Expand Down Expand Up @@ -1421,7 +1421,7 @@ class ConvOrthExponential(ConvBasisMixin, OrthExponentialBasis):
>>> ortho_basis = ConvOrthExponential(n_basis_funcs, window_size, decay_rates)
>>> sample_points = np.random.randn(100)
>>> # convolve the basis
>>> basis_functions = ortho_basis.compute_features(sample_points)
>>> features = ortho_basis.compute_features(sample_points)
"""

def __init__(
Expand Down

0 comments on commit 4a588f0

Please sign in to comment.