OrderingLayer

OrderingLayer[]

represents a net layer that effectively applies Ordering to its input.

OrderingLayer[n]

gives the first n elements in the ordering of its input.

OrderingLayer[-n]

gives the last n elements in the ordering of its input.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Create an OrderingLayer:

Apply the layer to a vector:

Scope  (3)

Arguments  (2)

Create an OrderingLayer that returns the positions of the 4 smallest elements:

Apply the layer to a vector:

Create an OrderingLayer that returns the positions of the 4 largest elements:

Apply the layer to a vector:

Ports  (1)

Create an OrderingLayer that returns the positions of the 4 smallest elements and takes a vector of length 8:

Apply the layer to a vector:

Apply the layer to a batch of vectors:

Properties & Relations  (1)

OrderingLayer performs the same computation as Ordering:

Possible Issues  (1)

Element specifications cannot be zero:

Wolfram Research (2019), OrderingLayer, Wolfram Language function, https://reference.wolfram.com/language/ref/OrderingLayer.html.

Text

Wolfram Research (2019), OrderingLayer, Wolfram Language function, https://reference.wolfram.com/language/ref/OrderingLayer.html.

CMS

Wolfram Language. 2019. "OrderingLayer." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/OrderingLayer.html.

APA

Wolfram Language. (2019). OrderingLayer. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OrderingLayer.html

BibTeX

@misc{reference.wolfram_2024_orderinglayer, author="Wolfram Research", title="{OrderingLayer}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/OrderingLayer.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_orderinglayer, organization={Wolfram Research}, title={OrderingLayer}, year={2019}, url={https://reference.wolfram.com/language/ref/OrderingLayer.html}, note=[Accessed: 21-November-2024 ]}