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

correlation

correlation

The correlation analytic returns the correlation coefficient of list1 and list2. Use the correlation coefficient to determine the relationship between two lists of values. For example, you can examine the relationship between a list of an old stock price and a new stock price.

Syntax

correlation(list1,list2)
The following table describes the required and optional arguments for the correlation function:
Argument
Required
Optional
Description
list1
Required
A list of values.
lis2
Required
A second list of values.
The following table provides the datatype for the parameters you can pass:
Parameter Input Options
Datatype
Watchlist values
Real number
Example
when 1 stocktopic with correlation(watchlist:stockprice,watchlist:stocknewprice) as result > 0 then response with body=" ${result}"
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
Watchlist stockprice: 5,7,15
Watchlist stocknewprice: 9,13,18
Correlates the two concatenated watchlist values and returns the result.
0.96

Error Condition

The analytic does not run when there is a type mismatch, that is, when the values contain nonnumeric data. On type mismatch, the analytic returns an error, stops the rule evaluation, and writes the mismatch error to the log file.

0 COMMENTS

We’d like to hear from you!