Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
samplestream:class_lagcorrectedquery [2024/04/25 21:59]
optrix
samplestream:class_lagcorrectedquery [2024/04/25 23:20]
optrix
Line 34: Line 34:
  
 ===Usage=== ===Usage===
- 
-The **multiplier** is usually used to convert the time-base of a //rate//. The class expects your rate to be //per second//, so if you wanted to use a **per minute** input time, you can set the multiplier to 0.016666. 
- 
-The **shavems** option is useful if you want to simplify the data you're getting by eliminating sub-second results. This will effectively 'round up' your results so you have no more than one point per second. 
  
 You build up your query out of three main parts... You build up your query out of three main parts...
Line 43: Line 39:
 ==Lag Counter or Rate== ==Lag Counter or Rate==
  
-First, you need a number that can be used to measure the lag. This might be a distance, a flow-rate, a speed or some other **counter** or **rate** that can be used to see how much of a //thing// (other than time) has passed.+First, you need a number that can be used to measure the lag. This might be a distance, a flow-rate, a speed or some other **counter** or **rate** that can be used to see how much of a //thing// (other than time) has passed. This is called the [[source|source of lag]].
  
 ==Assets== ==Assets==
Line 54: Line 50:
  
 Next, you'll choose an [[End Asset|end asset]]. This is usually the //last// part of your system. This is because the class only searches [[building backwards|backwards through time]] rather than forwards, so you'll need to work from the end of your process. Next, you'll choose an [[End Asset|end asset]]. This is usually the //last// part of your system. This is because the class only searches [[building backwards|backwards through time]] rather than forwards, so you'll need to work from the end of your process.
 +
 +===Additional Parameters===
 +
 +The **multiplier** is usually used to convert the time-base of a //rate//. The class expects your rate to be //per second//, so if you wanted to use a **per minute** input time, you can set the multiplier to 0.016666.
 +
 +The **shavems** option is useful if you want to simplify the data you're getting by eliminating sub-second results. This will effectively 'round up' your results so you have no more than one point per second.
  
 ===Example=== ===Example===
  
 [[example|See an example]] [[example|See an example]]