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  (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:

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_2022_orderinglayer, author="Wolfram Research", title="{OrderingLayer}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/OrderingLayer.html}", note=[Accessed: 19-August-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_orderinglayer, organization={Wolfram Research}, title={OrderingLayer}, year={2019}, url={https://reference.wolfram.com/language/ref/OrderingLayer.html}, note=[Accessed: 19-August-2022 ]}