fullcable.t | R Documentation |
The bent-cable response is evaluated at a provided design point t
.
fullcable.t(t, b0, b1, b2, tau, gamma)
t |
A design point at which the bent cable is to be evaluated. |
b0 |
Intercept. |
b1 |
Incoming slope. |
b2 |
Coefficient of the basic bent cable. |
tau |
Centre of the quadratic bend (transition). |
gamma |
Non-negative half-width of the quadratic bend. |
All arguments must be numeric, and at most one can be a vector.
The full bent cable has the form f(t) = b_0 + b_1 t + b_2 q(t), where q(t) is the basic bent cable function with intercept and slope 0 and outgoing slope 1:
q(t)=\frac{(t-τ+γ)^2}{4γ} I\{|t-τ|≤qγ\} + (t-τ) I\{t>τ+γ\}
for γ≥q 0.
This function is intended for internal use by bentcable.ar
and bentcable.dev.plot
.
Grace Chiu
See the bentcableAR
package references.
# basic broken stick, kink at 0: plot( seq(-10,10), fullcable.t(seq(-10,10),0,0,1,0,0) ) # full bent cable, bend centred at 0 with half-width 3: plot( seq(-10,10), fullcable.t(seq(-10,10),1,.1,-.5,0,3) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.