def rescale(self, domain_range=None):
    'Return a copy of the basis with a new domain range, with the\n            corresponding values rescaled to the new bounds.\n            The knots of the BSpline will be rescaled in the new interval.\n\n            Args:\n                domain_range (tuple, optional): Definition of the interval\n                    where the basis defines a space. Defaults uses the same as\n                    the original basis.\n        '
    knots = np.array(self.knots, dtype=np.dtype('float'))
    if (domain_range is not None):
        knots -= knots[0]
        knots *= ((domain_range[1] - domain_range[0]) / (self.knots[(- 1)] - self.knots[0]))
        knots += domain_range[0]
        knots[0] = domain_range[0]
        knots[(- 1)] = domain_range[1]
    else:
        domain_range = self.domain_range[0]
    return BSpline(domain_range, self.n_basis, self.order, knots)
Return a copy of the basis with a new domain range, with the
corresponding values rescaled to the new bounds.
The knots of the BSpline will be rescaled in the new interval.

Args:
    domain_range (tuple, optional): Definition of the interval
        where the basis defines a space. Defaults uses the same as
        the original basis.
def rescale(self, domain_range=None):
    'Return a copy of the basis with a new domain range, with the\n            corresponding values rescaled to the new bounds.\n            The knots of the BSpline will be rescaled in the new interval.\n\n            Args:\n                domain_range (tuple, optional): Definition of the interval\n                    where the basis defines a space. Defaults uses the same as\n                    the original basis.\n        '
    knots = np.array(self.knots, dtype=np.dtype('float'))
    if (domain_range is not None):
        knots -= knots[0]
        knots *= ((domain_range[1] - domain_range[0]) / (self.knots[(- 1)] - self.knots[0]))
        knots += domain_range[0]
        knots[0] = domain_range[0]
        knots[(- 1)] = domain_range[1]
    else:
        domain_range = self.domain_range[0]
    return BSpline(domain_range, self.n_basis, self.order, knots)