DataReal.from_range

classmethod DataReal.from_range(name: str, vmin: int | float, vmax: int | float, dim: int = 1, unit: str | None = None, transformations: List[str] | List[DataObjectTransform] | None = None, dtype: str = 'float64', flag_split_perdim: bool = False) DataReal[source]

Class method to initialization a DataReal from a range defined by vmin and vmax.

Parameters:
  • name (str) – Name of the data object.

  • vmin (Union[int, float]) – Lower bound of the interval domain.

  • vmax (Union[int, float]) – Upper bound of the interval domain.

  • dim (int, optional, default=1) – Dimensionality of the data object, or different columns to perform the split on.

  • unit (str, optional, default=None) – Unit of the data object (e.g. m, kg. m^2, m/s^2 etc.). Use ^ to indicate powers (e.g. m^2), and _ to indicate subscripts (e.g. m_1).

  • transformations (Union[List[str], List[DataObjectTransform]], optional, default=None) – List of transformations to be applied to the data object.

  • dtype (str, optional, default=”float64”) – The dtype of the numpy are of the expected data matrix.

  • flag_split_perdim (bool, optional, default=False) – If True, object is split across dimensions in a DataBlock.

Returns:

DataReal – A DataReal object.