Skip to content

Scale

class Scale

Struct for scale values.

Attributes

Name Description
scale_list
scale
is_uniform

scale_list

property scale_list: List[float]

scale

property scale: float

is_uniform

property is_uniform: bool

Methods

Name Description
__init__
from_cpp
__getitem__ Returns the scale value at the specified index.
__repr__

__init__

def __init__(self, scale: float, is_uniform: bool, scale_list: List[float])

from_cpp

def from_cpp(cls, _scale: _cQbRuntime.Scale)

__getitem__

def __getitem__(self, i: int) -> float

Returns the scale value at the specified index.

Parameters

  • i [in] — Index.

Returns

Scale value.

__repr__

def __repr__(self)