Bin Numbers

logic · N105 · starter-package 7.0.1

Count observations in numeric intervals defined by strictly increasing edges. Each lower edge is included. Only the last bin includes its upper edge. Below and Above count out-of-range observations.

Example

Connected values

{"items":[-1,0,2,4,5],"edges":[0,2,4]}

Result

{"bins":[{"lower":0,"upper":2,"count":1},{"lower":2,"upper":4,"count":2}],"below":1,"above":1}

Connector data types

DirectionConnectorTypeRequired
Inputitems — Itemslistyes
Inputedges — Edgeslistyes
Outputbins — Binsliston success
Outputbelow — Belownumberon success
Outputabove — Abovenumberon success

Errors and recovery

Sort Edges in increasing order and remove repeated boundaries. Include at least two edges to define the first bin.