(seed, npStar, ndStar)
return np.round(a * seed + b)
Rescales the seed design

        :param seed: seed design, size S x D
        :param npStar: size of the LHD to be generated. N* >= N
        :param ndStar: number of translation steps for the seed in each dimension
        :return: rescaled seeds, size S x D
Rescales the seed design
Rescales the seed design
def _rescale_seed(seed, npStar, ndStar):
        """
        Rescales the seed design

        :param seed: seed design, size S x D
        :param npStar: size of the LHD to be generated. N* >= N
        :param ndStar: number of translation steps for the seed in each dimension
        :return: rescaled seeds, size S x D
        """
        ns, nv = seed.shape
        if ns == 1:
            seed = np.ones((1, nv))
            return seed
        uf = ns * np.ones(nv)
        ut = ((npStar / ndStar) - ndStar * (nv - 1) + 1) * np.ones(nv)
        a = (ut - 1) / (uf - 1)
        b = ut - a * uf

        return np.round(a * seed + b)
def _rescale_seed ( seed , npStar , ndStar ) : ns , nv = seed . shape if ns == 1 : seed = np . ones ( ( 1 , nv ) ) return seed uf = ns * np . ones ( nv ) ut = ( ( npStar / ndStar ) - ndStar * ( nv - 1 ) + 1 ) * np . ones ( nv ) a = ( ut - 1 ) / ( uf - 1 ) b = ut - a * uf return np . round ( a * seed + b )