Jump to content

Recommended Posts

Posted

Hi,

I have a condition (imported from CSV) containing many numeric properties that I'd like to use in a formula. So far, I've been able to pull the property data into a signal using toSignal() and toNumeric() functions:

$condition.toSignal('<Property Name>').toNumeric()

but the result is discrete data points at the beginning of each capsule. How can I modify my formula so that the resulting signal is flat lines spanning the duration of each capsule? What I'm looking for is just like the result of selecting "Duration" for "Select where to place the timestamp of the summary statistic" in a Signal from Condition except the "statistic" a specified property of each capsule.

 

Thanks,
Ethan

Posted

Hi Ethan,

you can try this:

image.png.9b937c5a5e2b50f9a4ec1e2cb0fbe70b.png

The formula combines two signals with the property value at start an end of the capsule. By using toStep() the samples are connected and by using within() only the portion of the signal within the condition is kept.

image.thumb.png.1ce3ec1143d78cc70ee9983036754b8d.png

Does this work for you?

Regards,

Thorsten

  • Like 1
  • Administrators
Posted

It would be possible to shorten the formula by using the following syntax.

$condition.toSignal('Max').toNumber().toStep(1week).within($condition)

Note: Depending on the format of the property using toNumber() may not be necessary so it could be removed as well.

$condition.toSignal('Max').toStep(1week).within($condition) 

Hope this helps,
Teddy

  • Like 1

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...