|
__init__(self,
label=' Fit ' )
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
set_data(self,
xx,
yy,
vvv=[ ] ,
v_names=[ ] )
Makes available the x, y and variable series. |
source code
|
|
|
set_weight(self,
expr)
Tells how to calculate each sample's weight; ssr = sum(
(weight*dy)**2 ). |
source code
|
|
|
|
|
|
|
set_param(self,
nm,
value=None,
lo=None,
hi=None,
can_fit=None)
Changes the value, low bound, high bound, and/or can_fit of a curve
param. |
source code
|
|
|
set_max_iter(self,
x)
Changes the max number of param improvements per fit(). |
source code
|
|
|
set_toler(self,
x)
Changes the precision of future fit()s. |
source code
|
|
|
set_strategy(self,
x)
Modifies the startup script. |
source code
|
|
|
add_strategy_line(self)
Repeats the final fit(...) line in strategy script. |
source code
|
|
|
set_fitter(self,
fitter_class)
Replaces the fitter with fitter_class(max_iter, toler) . |
source code
|
|
|
|
|
|
|
request_fitparams(self)
Triggers OnMaxIter and OnToler. |
source code
|
|
|
request_strategy(self)
Triggers OnStrategy. |
source code
|
|
|
request_fitter_name(self)
Triggers OnFitter. |
source code
|
|
|
|
|
fit(self,
grab_initial=True)
Improves param values; Triggers OnStartFit, OnIteration, ...,
OnEndFit, OnParam, ..., OnStats. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
robot_set_data(self,
xx,
yy,
vvv=[ ] ,
v_names=[ ] ) |
source code
|
|
|
|
|
robot_set_curve(self,
curve_class,
expr=None) |
source code
|
|
|
|
|
|
|
|
|
robot_set_param(self,
nm,
value,
lo,
hi,
can_fit) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
robot_fit(self,
serial,
grab_initial)
Fits by running strategy script; "fit" in script refers to
robot_strategy_fit, below. |
source code
|
|
|
robot_strategy_fit(self,
variables=None,
**params)
Implementation of strategy.locals.fit |
source code
|
|
|
|
|
|
|
__onException(self,
robot,
typ,
val,
trace) |
source code
|
|
|
|
|
|
|
|
Inherited from task.Robot :
do ,
hold_from_task ,
interrupt ,
robot_settrace ,
run ,
run_one ,
settrace ,
stop ,
sync ,
trace_func
Inherited from task.Task :
__call__ ,
gui_call_recv ,
idle_wait ,
join ,
send_exception ,
send_progress ,
send_result ,
send_status ,
set_progress ,
set_status ,
start ,
thread_main
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
OnData
WeakEvent(xx, yy, vvv, v_names)
|
|
OnEndFit
WeakEvent()
|
|
OnEndFit_Robot
WeakEvent() called in robot thread
|
|
OnExpr
WeakEvent(curve_name, curve_expr, params,
param_vals, lo, hi, can_fit)
|
|
OnFitter
WeakEvent(name_of_fitter)
|
|
OnIteration
WeakEvent(param_vals, iteration)
|
|
OnMaxIter
WeakEvent(max_iter)
|
|
OnOutput
WeakEvent(str) duplication of stdout during strategy
|
|
OnParam
WeakEvent(index, name, value, lo, hi, can_fit)
|
|
OnStartFit
WeakEvent()
|
|
OnStartFit_Robot
WeakEvent() called in robot thread
|
|
OnStats
WeakEvent(correlation, is_pseudo, std_err_est[],
ssr, r2, runs_prob)
|
|
OnStatus
qubx.util_types.WeakEvent(Task, status)
|
|
OnStrategy
WeakEvent(strategy_script)
|
|
OnStrategyWarn
WeakEvent(Strategy)
when curve has changed and script may reference invalid vars
|
|
OnToler
WeakEvent(toler)
|
|
OnWeight
WeakEvent(weight_expr)
|
|
fitter
Simplex_LM_Fitter instance; replace it if you want
|
Inherited from task.Task :
OnException ,
OnInterrupt ,
OnProgress ,
OnResult ,
OnTerminate ,
label ,
main_hold ,
progress ,
status ,
tid
|