MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / lrunserialize

Function lrunserialize

src/linreg.cpp:659–665  ·  view source on GitHub ↗

Unserialization of DecisionForest strucure INPUT PARAMETERS: RA - real array which stores decision forest OUTPUT PARAMETERS: LM - unserialized structure -- ALGLIB -- Copyright 15.03.2009 by Bochkanov Sergey *************************************************************************/

Source from the content-addressed store, hash-verified

657 Copyright 15.03.2009 by Bochkanov Sergey
658*************************************************************************/
659void lrunserialize(const ap::real_1d_array& ra, linearmodel& lm)
660{
661
662 ap::ap_error::make_assertion(ap::round_f(ra(0))==lrvnum, "LRUnserialize: incorrect array!");
663 lm.w.setbounds(0, ap::round_f(ra(1))-1);
664 ap::vmove(&lm.w(0), 1, &ra(1), 1, ap::vlen(0,ap::round_f(ra(1))-1));
665}
666
667
668void lrlines(const ap::real_2d_array& xy,

Callers

nothing calls this directly

Calls 3

round_fFunction · 0.85
vmoveFunction · 0.85
setboundsMethod · 0.45

Tested by

no test coverage detected