# LinearScale

## pydantic model LinearScale[source]

Bases: `BaseModel`

Linear scaling: physical = offset + (gain * raw).

Applied automatically on reads (raw -> physical) and reversed on writes
(physical -> raw). Not all protocols or data point types support scaling –
check the protocol-specific documentation.

### field type: Literal['linear'] = 'linear'

### field gain: float = 1.0

Scale factor (must not be zero)

### field offset: float = 0.0
