Lemonergy · Studio block
Scaling strip
Removes scaled-integer metadata and exposes the stored integer codes unchanged.
- Implementation ID
scaling-strip- Reviewed
- 2026-10-27
Behavior
Removes the slope and bias metadata while retaining the exact stored integer codes.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
in0 | input | 1 | Input 1; i32 signal. |
out0 | output | 1 | Output 1; i32 signal. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
signal quantitysignal.quantity | 1 | dimensionless | Explicit signal quantity in the worked model. |
signal shapesignal.shape | 1 | [2] | Explicit signal shape in the worked model. |
signal element Typesignal.elementType | 1 | i32 | Explicit signal elementType in the worked model. |
signal scaling slopesignal.scaling.slope | 1 | 0.25 | Explicit signal scaling slope in the worked model. |
signal scaling biassignal.scaling.bias | 1 | 0 | Explicit signal scaling bias in the worked model. |
Equations and rules
output code = input stored code
Worked example
Scaling strip — executable model
Stripping scaling from values[1.5,−0.5] encoded at slope0.25 exposes integer codes[6,−2].
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
ResultResult | 0.2 | 6 | 1 | 1e-09 |
Second integer codeResult/out0/1 | 0.2 | -2 | 1 | 1e-09 |
Use in a workflow
Scaling strip — executable model
Removes scaled-integer metadata and exposes the stored integer codes unchanged.
- Scaling strip: Removes the slope and bias metadata while retaining the exact stored integer codes.
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Requires a declared scaled-integer signal. General fixed-point arithmetic and inherited scaling inference are not implemented.
Reference basis
This compiler and software type contract is defined by the documented behavior and executable example; no external research result or full external API parity is claimed.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)