chaospy.create_chebyshev_samples¶
- chaospy.create_chebyshev_samples(order, dim=1)[source]¶
Generate Chebyshev pseudo-random samples.
- Args:
- order (int):
The number of samples to create along each axis.
- dim (int):
The number of dimensions to create samples for.
- Returns:
samples following Chebyshev sampling scheme mapped to the
[0, 1]^dim
hyper-cube andshape == (dim, order)
.- Examples:
>>> samples = chaospy.create_chebyshev_samples(6, 1) >>> samples.round(4) array([[0.0495, 0.1883, 0.3887, 0.6113, 0.8117, 0.9505]]) >>> samples = chaospy.create_chebyshev_samples(3, 2) >>> samples.round(3) array([[0.146, 0.146, 0.146, 0.5 , 0.5 , 0.5 , 0.854, 0.854, 0.854], [0.146, 0.5 , 0.854, 0.146, 0.5 , 0.854, 0.146, 0.5 , 0.854]])