Dear Herbert,
You need to provide 4 parameters, 2 for the first point and 3 for the
second.
The function calculate a geometric distance, sqrt((y2-y1)^2 + (x2-x1)^2).
To refer to attribute of an event use the following:
<EventName>.<EventAttributeName> for example attribute x of event a: a.x
So if event a has attributes x,y and event b has attributes x,y , you can
refer to the distance between those two points by writing:
distance(a.x,a.y,b.x,b.y)
Best regards,
Tali
Tali Yatzkar Haham
Smart Decision Solutions
IBM Research - Haifa, Israel
tali@il.ibm.com 972-4-8296320
From: "Manuel Escriche (JIRA)" <jira-help-desk@fi-ware.org>
To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
Date: 25/09/2015 01:04 PM
Subject: [FI-WARE-JIRA] (HELP-4365) [Fiware-tech-help] [Complex
Event Processing (CEP) - Proactive Technology Online] Example about proton
cep
[
https://jira.fiware.org/browse/HELP-4365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manuel Escriche reassigned HELP-4365:
-------------------------------------
Assignee: Tali Yatzkar Haham
Technology Online] Example about proton cep
----------------------------------------------------------------------------------------------------------
function
how
it,
–
This message was sent by Atlassian JIRA
(v6.4.1#64016)
Sent already to the user.
The CEP has no support for sin,cos functions