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 *************************************************************************/
| 657 | Copyright 15.03.2009 by Bochkanov Sergey |
| 658 | *************************************************************************/ |
| 659 | void 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 | |
| 668 | void lrlines(const ap::real_2d_array& xy, |