Lemonergy · Studio block

Neighborhood submodel

Applies a configured stateless operation to each image neighborhood with explicit boundary handling.

Implementation ID
native-neighborhood-map
Reviewed
2026-10-27

Behavior

y[row,column] = nested_kernel(patch around row,column with selected boundary policy). The worked example connects this operation to signals in Lemonergy Studio.

Interface

Neighborhood submodel interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Neighborhood submodelStudio blockin0out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Image; real 3 × 3 array.
out0output1Result; real 3 × 3 array.

Parameters

Defaults are initial model values. Select values for your own model and operating conditions.

Configuration fields
ParameterUnitDefaultMeaning and limits
Row radius
params[0]
11Configured finite numerical parameter.
Column radius
params[1]
11Configured finite numerical parameter.
Boundary policy
params[2]
100 zero padding; 1 clamp to edge; 2 wrap.
Nested operation
nested
1native-reduce-elementsA configured pure stateless one-input, one-output Lemonergy operation. Edit its own parameters inside the wrapper.

Equations and rules

  • y[row,column] = nested_kernel(patch around row,column with selected boundary policy)

Worked example

Neighborhood submodel — worked example

Image = [1,2,3,4,5,6,7,8,9]. Result at 0 s = [1.3333333333333333,2.3333333333333335,1.7777777777777777,3,5,3.6666666666666665,2.6666666666666665,4.333333333333333,3.111111111111111].

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Result
out0
0[1.3333333333333333, 2.3333333333333335, 1.7777777777777777, 3, 5, 3.6666666666666665, 2.6666666666666665, 4.333333333333333, 3.111111111111111]11e-08

Explore the recorded outputs

Neighborhood submodel recorded example

Neighborhood submodel [1, 1]
Neighborhood submodel [1, 1] against timeRecorded synthetic simulation values. Time in seconds; output in —.0.833333301.0833330.251.3333330.51.5833330.751.8333331—Time (s)
Neighborhood submodel [1, 1]: 1.333333 — at 0 s

2 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.

Download the recorded samples (JSON) · Open this Studio example after release

Use in a workflow

Neighborhood submodel — worked example

Applies a configured stateless operation to each image neighborhood with explicit boundary handling.

  1. Neighborhood submodel: y[row,column] = nested_kernel(patch around row,column with selected boundary policy). The worked example connects this operation to signals in Lemonergy Studio.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • One pure stateless nested kernel per bounded column-major patch with zero/clamp/wrap boundary policy. Arbitrary multi-block and stateful nested graphs are refused.
  • Shapes and element types are explicit. Values must be finite; automatic reshaping and unit conversion are not performed.
  • Only one pure stateless nested kernel is executed. Arbitrary multi-block or stateful nested graphs are not supported.

Reference basis

This software operation and its numerical conventions are defined by the public contract and worked example; no external research result 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)