Jump to content

norman47

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

norman47's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • Reacting Well
  • First Post
  • Conversation Starter

Recent Badges

3

Reputation

  1. Hey Andrew, Thanks for the quick response. That makes sense and the added max duration made it work properly now. I appreciate all the help! Cheers, Norman
  2. Hey Andrew, Thank you very much for the response! I did end up computing the error in the way you described, breaking it down step by step. Your reversal count also works really well. I just have one question - I tried to replace the $period with a daily periodic condition I already made that starts at 6AM, but then the formula does not run and says it is unbound. Is there a reason why trying to replace $period in the formula with an already made periodic condition breaks it? Edit: In addition, would that formula not also count anytime the signal still goes up? Say it goes from 5 -> 10 -> 15 -> 10. in that sequence, there is only 1 reversal, but I think the formula above would count a total of 3. Thank you, Norman
  3. Hello, I am looking to calculate some metrics on a loop - error, total control output travel, and number of reversals/changes. Error: Total Travel: The error needs to sum up the difference between two values over a time period and divide it by the total number of values used in that time period. The total travel would sum up all the movements of a number over the day (for eg if a value went from 10->15->20 total travel would be 10). Number of reversals/changes is as stated how many times a signal changes direction/value. I noticed that for some signals, the total count can be different depending on how often the value changes. Is there a simple way to pull the value of a number at a specific time stamp? And then to continue on, to do that over a capsule period ie calculating average over a 1 day timeframe? Thank you, Norman Edit 1: I think I solved the total travel. I used a combination of running delta and running sum bounded within a capsule abs($cmfo.runningDelta()).runningSum($d)
×
×
  • Create New...