43 dopt_tab = [1.98 97.09; 2.03 98.6; 2.08 99.87; 2.13 100; 2.18 100.09; 2.23 98.85; 2.28 97.06];
45 dup = [1.3 7; 1.4 25; 1.45 35; 1.5 49; 1.6 68; 1.65 78; 1.7 85; 1.75 88; 1.8 91; 1.9 95];
46 ddow = [2.3 96.6; 2.8 60; 3.0 45; 3.4 20; 3.6 6];
47 curve = [dup; dopt_tab; ddow];
54 curve(:,2) = curve(:,2)/max(curve(:,2));
57 curve = [1.1 0; 1.25 0; curve; 3.7 0; 3.8 0];
60 this =
this@general.functions.PiecewiseLinear(curve(sel,1)
" ,curve(sel,2) ");
67 str = sprintf(
" L_0=%g ",this.l0);
72 pm =
plot@general.functions.PiecewiseLinear(
this, varargin[:]);
74 ax = pm.nextPlot(
" gordon66_fit ",
" Splint fits ",
" length ",
" force ");
77 [len, proc] = this.
transform(this.cdata(:,1)
" ,this.cdata(:,2) ");
79 plot(len,proc,
" r-x ");
82 slen = linspace(min(len)*.99,max(len)*1.01,200);
83 sproc = spline(len,proc,slen);
85 pproc = ppval(slen,pp);
86 plot(ax,slen,
sproc,
" k- ",slen,pproc,
" m- ");
88 pol = polyfit(len,proc,8);
115 * slen = min(len)*.99 + rand*(max(len)*1.01-min(len)*.99);
118 *
sproc = pchip(len,proc,slen);
function str = getConfigStr()
Gordon66SarcoForceLength(l0)
A variable number of input arguments.
function [ colvec< double > x , matrix< double > y ] = transform(colvec< double > x,matrix< double > y)