Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

small

small

The small analytic returns the k-th smallest value in a data set. Use this analytic to return values with a particular relative standing in a data set.

Syntax

small(list of numbers, k)
The following table describes the required and optional arguments:
Argument
Required
Optional
Description
list of numbers
Required
An array or range of numerical data for which you want to determine the k-th smallest value.
k
Required
The position from the smallest in the array or range of data to return.
The following table provides the datatype for the parameters you can pass:
Parameter Input Options
Datatype
Event properties separated by a comma
Real number
Example
when 1 stocktopic with small(watchlist:numberlist,3 ) as result = 20 then response with body=" result is ${result}"
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
watchlist: numberlist
50
20
15
10
Returns the third smallest number in the list.
20

0 COMMENTS

We’d like to hear from you!