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

Function lrserialize

src/linreg.cpp:637–644  ·  view source on GitHub ↗

Serialization of LinearModel strucure INPUT PARAMETERS: LM - original OUTPUT PARAMETERS: RA - array of real numbers which stores model, array[0..RLen-1] RLen - RA lenght -- ALGLIB -- Copyright 15.03.2009 by Bochkanov Sergey *************************************************************************/

Source from the content-addressed store, hash-verified

635 Copyright 15.03.2009 by Bochkanov Sergey
636*************************************************************************/
637void lrserialize(const linearmodel& lm, ap::real_1d_array& ra, int& rlen)
638{
639
640 rlen = ap::round_f(lm.w(0))+1;
641 ra.setbounds(0, rlen-1);
642 ra(0) = lrvnum;
643 ap::vmove(&ra(1), 1, &lm.w(0), 1, ap::vlen(1,rlen-1));
644}
645
646
647/*************************************************************************

Callers

nothing calls this directly

Calls 3

round_fFunction · 0.85
vmoveFunction · 0.85
setboundsMethod · 0.45

Tested by

no test coverage detected