Calculate weights for triangular weight functions, which increase from 0 to 1 between st and md, and decrease from 1 to 0 from md to ed.
1 | weight_one(x, st, md, ed)
|
x |
input point to evaluate weights at |
st |
starting point (see description) |
md |
midpoint (see description) |
ed |
end point (see description) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.