chaospy.create_antithetic_variates

chaospy.create_antithetic_variates(samples, axes=())[source]

Generate antithetic variables.

Args:
samples (numpy.ndarray):

The samples, assumed to be on the [0, 1]^D hyper-cube, to be reflected.

axes (tuple):

Boolean array of which axes to reflect. If This to limit the number of points created in higher dimensions by reflecting all axes at once.

Returns (numpy.ndarray):

Same as samples, but with samples internally reflected. roughly equivalent to numpy.vstack([samples, 1-samples]) in one dimensions.