Jump to content

Create capsule for every n-number of samples starting from a fixed datetime


Sivaji

Recommended Posts

  • Seeq Team

Hi Sivaji,

Step 1: Calculate aggregated value of every n-samples. Example here I am calculating the average for every 5 samples.

Use aggregateByCount which is introduced in version R54.

$signal.aggregateByCount(average(), 5, 10d)

Step 2: The difference between the sample and aggregated value is greater than certain threshold

These capsules will be  0s duration as the aggregateByCount generated a discrete signal.

image.png

Step 3: Replace the samples with the aggregated value 

image.png

image.png

Hope this help.

 

 

Edited by Sharlinda Salim
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...