Jump to content

Preventing Interpolation Across Batch/Capsule Boundaries


Recommended Posts

  • Seeq Team

A question came up recently that I thought would be of wider interest: how can I prevent interpolation across batch/capsule boundaries?

In batch processes, lab samples are often taken periodically throughout the course of a batch. When viewing these samples in Seeq, you may encounter times when samples are interpolating between batches rather than just within a batch. In the image below, the periods highlighted in yellow correspond to this unwanted interpolation.

image.png

The following formula is one way of preventing this interpolation. $signal corresponds to your signal of interest and $condition corresponds to your batches you want to prevent interpolation across.

combineWith(
    $signal,
    Scalar.Invalid.toSignal().aggregate(startValue(), 
                                        $condition.removeLongerThan(40h),
                                        startKey())
)

This results in the following signal that has our desired behavior:

image.png

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