StratifiedRandomGrid1D

class kgpy.grid.StratifiedRandomGrid1D(min=<Quantity 0.>, max=<Quantity 1.>, num_samples=1, axis=-1)

Bases: RegularGrid1D

Parameters
__init__(min=<Quantity 0.>, max=<Quantity 1.>, num_samples=1, axis=-1)
Parameters
Return type

None

Attributes

axis

max

min

name

num_samples

points

points_base

range

shape

step_size

Methods

__init__([min, max, num_samples, axis])

copy()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

mesh(shape, new_axes)

rtype

astropy.units.Quantity

perturbation(shape)

rtype

astropy.units.Quantity

Inheritance Diagram

Inheritance diagram of kgpy.grid.StratifiedRandomGrid1D

copy()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

copy_shallow()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

mesh(shape, new_axes)
Return type

astropy.units.Quantity

Parameters
perturbation(shape)
Return type

astropy.units.Quantity

Parameters

shape (Tuple[int, ...]) –

axis: int = -1
max: astropy.units.Quantity = <Quantity 1.>
min: astropy.units.Quantity = <Quantity 0.>
property name: Optional[ndarray]
num_samples: int = 1
property points: Quantity
property points_base: Quantity
property range: Quantity
property shape: Tuple[int, ...]
property step_size: Quantity