User Tools

Site Tools


curves

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
curves [2020/07/30 15:33] atolstovcurves [2020/07/31 12:53] atolstov
Line 4: Line 4:
 Curve is a way to define output value from a pre-defined pair table of a discrete set of known data points. Such as standard or desired value. Curve is a way to define output value from a pre-defined pair table of a discrete set of known data points. Such as standard or desired value.
  
-It can be represented as a black-box, where is some **INPUT x** have corresponding **OUTPUT y** = f(x)+Curve can be represented as a function f, which is a blackbox, where is some **INPUT x** have corresponding **OUTPUT y** = f(x)
  
 Curve is using a piecewise linear interpolation, is a curve fitting which is a allow to using linear polynomials to construct new data points within the range of a discrete set of known data points. Curve is using a piecewise linear interpolation, is a curve fitting which is a allow to using linear polynomials to construct new data points within the range of a discrete set of known data points.
Line 54: Line 54:
 At the end, when all the rest of parameters set let's look at the result . In our example it would more precise approximation of sin(x) with 7 point defined\\  At the end, when all the rest of parameters set let's look at the result . In our example it would more precise approximation of sin(x) with 7 point defined\\ 
 {{ :curve:c6.png?direct&600 |}}\\  {{ :curve:c6.png?direct&600 |}}\\ 
 +=====Select a curve to put in register=====
 +<del>First, to get value from curve you need the curves and the register pre-created.</del>
 +
 +To get the value you need:
 +  - Have a curve
 +  - Have a string register for dashboard element to put selected curve in it
 +  - Optionally, have yet another string register for store that curve all the time
 +
 +Now, it is time to create a register with value type "String" for dashboard element.
 +
 +Then, create a new dashboard. 
 +{{ :curve:no_dashb.png?direct&600 |}}
 +Click the "Add dashboard".
 +{{ :curve:dash.png?direct&600 |}}
 +Type in the Title and go on.
 +{{ :curve:dash_vis_editor.png?direct&600 |}}
 +Go to a visual editor.
 +
 +
 +To do this, there is a dashboard element "Curve".
 +{{ :curve:dash_element.png?direct&600 |}}
 +Drag'n'drop it to create a new one.
 +{{ :curve:dash_element_created.png?direct&600 |}}
 +
 +Pick a register to be used later in Lua script to get value.
 +{{ :curve:dash_element_reg.png?direct&600 |}}
 +Let's test it.
 +Now, you need to put the curve to string register via dashboard.
 +{{ :curve:dash_element_view_no_select.png?direct&600 |}}
 +Click and select the one you want to pick. There is a icon for open curve editor.
 +{{ :curve:dash_element_view_selector.png?direct&600 |}}
 +There is a picked one.
 +{{ :curve:dash_element_view_curve_1.png?direct&600 |}}
 + Let's check the register.
 +{{ :curve:reg_filled_with_equat.png?direct&600 |}}
  
 =====Get value from the curve===== =====Get value from the curve=====
curves.txt · Last modified: 2022/05/24 08:52 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki