Changeset 1437 for trunk/yat/regression


Ignore:
Timestamp:
Aug 25, 2008, 7:55:00 PM (13 years ago)
Author:
Peter
Message:

merge patch release 0.4.2 to trunk. Delta 0.4.2-0.4.1

Location:
trunk/yat/regression
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/Kernel.h

    r1310 r1437  
    1010  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    1111
    12   This file is part of the yat library, http://trac.thep.lu.se/yat
     12  This file is part of the yat library, http://dev.thep.lu.se/yat
    1313
    1414  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/KernelBox.cc

    r1275 r1437  
    66  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    77
    8   This file is part of the yat library, http://trac.thep.lu.se/yat
     8  This file is part of the yat library, http://dev.thep.lu.se/yat
    99
    1010  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/KernelBox.h

    r1275 r1437  
    1010  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    1111
    12   This file is part of the yat library, http://trac.thep.lu.se/yat
     12  This file is part of the yat library, http://dev.thep.lu.se/yat
    1313
    1414  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/KernelTriCube.cc

    r1275 r1437  
    66  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    77
    8   This file is part of the yat library, http://trac.thep.lu.se/yat
     8  This file is part of the yat library, http://dev.thep.lu.se/yat
    99
    1010  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/KernelTriCube.h

    r1275 r1437  
    99  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    1010
    11   This file is part of the yat library, http://trac.thep.lu.se/yat
     11  This file is part of the yat library, http://dev.thep.lu.se/yat
    1212
    1313  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/Linear.cc

    r1275 r1437  
    55  Copyright (C) 2008 Peter Johansson
    66
    7   This file is part of the yat library, http://trac.thep.lu.se/yat
     7  This file is part of the yat library, http://dev.thep.lu.se/yat
    88
    99  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/Linear.h

    r1275 r1437  
    88  Copyright (C) 2008 Peter Johansson
    99
    10   This file is part of the yat library, http://trac.thep.lu.se/yat
     10  This file is part of the yat library, http://dev.thep.lu.se/yat
    1111
    1212  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/LinearWeighted.cc

    r1275 r1437  
    77  Copyright (C) 2008 Peter Johansson
    88
    9   This file is part of the yat library, http://trac.thep.lu.se/yat
     9  This file is part of the yat library, http://dev.thep.lu.se/yat
    1010
    1111  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/LinearWeighted.h

    r1275 r1437  
    1010  Copyright (C) 2008 Peter Johansson
    1111
    12   This file is part of the yat library, http://trac.thep.lu.se/yat
     12  This file is part of the yat library, http://dev.thep.lu.se/yat
    1313
    1414  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/Local.cc

    r1275 r1437  
    66  Copyright (C) 2008 Peter Johansson
    77
    8   This file is part of the yat library, http://trac.thep.lu.se/yat
     8  This file is part of the yat library, http://dev.thep.lu.se/yat
    99
    1010  The yat library is free software; you can redistribute it and/or
     
    6969
    7070    size_t nof_fits=data_.size()/step_size;
    71     x_ = utility::Vector(nof_fits);
    72     y_predicted_ = utility::Vector(x_.size());
    73     y_err_ = utility::Vector(x_.size());
     71    x_.resize(nof_fits);
     72    y_predicted_.resize(x_.size());
     73    y_err_.resize(x_.size());
    7474    sort(data_.begin(), data_.end());
    7575
    76     // coying data to 2 utility vectors ONCE to use views from
     76    // copying data to 2 utility vectors ONCE to use views from
    7777    utility::Vector x(data_.size());
    7878    utility::Vector y(data_.size());
     
    124124      assert(i<y_predicted_.size());
    125125      assert(i<y_err_.size());
     126      x_(i) = x(i*step_size);
    126127      y_predicted_(i) = regressor_->predict(x(i*step_size));
    127128      y_err_(i) = sqrt(regressor_->standard_error2(x(i*step_size)));
  • trunk/yat/regression/Local.h

    r1275 r1437  
    99  Copyright (C) 2008 Peter Johansson
    1010
    11   This file is part of the yat library, http://trac.thep.lu.se/yat
     11  This file is part of the yat library, http://dev.thep.lu.se/yat
    1212
    1313  The yat library is free software; you can redistribute it and/or
     
    7070
    7171    ///
     72    /// @param step_size Size of step between each fit
    7273    /// @param nof_points Number of points used in each fit
    73     /// @param step_size Size of step between each fit
    7474    ///
    7575    void fit(const size_t step_size, const size_t nof_points);
  • trunk/yat/regression/Makefile.am

    r1324 r1437  
    66# Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    77#
    8 # This file is part of the yat library, http://trac.thep.lu.se/yat
     8# This file is part of the yat library, http://dev.thep.lu.se/yat
    99#
    1010# The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/MultiDimensional.cc

    r1275 r1437  
    55  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
    66
    7   This file is part of the yat library, http://trac.thep.lu.se/yat
     7  This file is part of the yat library, http://dev.thep.lu.se/yat
    88
    99  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/MultiDimensional.h

    r1275 r1437  
    88  Copyright (C) 2008 Peter Johansson
    99
    10   This file is part of the yat library, http://trac.thep.lu.se/yat
     10  This file is part of the yat library, http://dev.thep.lu.se/yat
    1111
    1212  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/MultiDimensionalWeighted.cc

    r1275 r1437  
    44  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
    55
    6   This file is part of the yat library, http://trac.thep.lu.se/yat
     6  This file is part of the yat library, http://dev.thep.lu.se/yat
    77
    88  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/MultiDimensionalWeighted.h

    r1275 r1437  
    88  Copyright (C) 2008 Peter Johansson
    99
    10   This file is part of the yat library, http://trac.thep.lu.se/yat
     10  This file is part of the yat library, http://dev.thep.lu.se/yat
    1111
    1212  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/Naive.cc

    r1275 r1437  
    66  Copyright (C) 2008 Peter Johansson
    77
    8   This file is part of the yat library, http://trac.thep.lu.se/yat
     8  This file is part of the yat library, http://dev.thep.lu.se/yat
    99
    1010  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/Naive.h

    r1275 r1437  
    99  Copyright (C) 2008 Peter Johansson
    1010
    11   This file is part of the yat library, http://trac.thep.lu.se/yat
     11  This file is part of the yat library, http://dev.thep.lu.se/yat
    1212
    1313  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/NaiveWeighted.cc

    r1275 r1437  
    66  Copyright (C) 2008 Peter Johansson
    77
    8   This file is part of the yat library, http://trac.thep.lu.se/yat
     8  This file is part of the yat library, http://dev.thep.lu.se/yat
    99
    1010  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/NaiveWeighted.h

    r1275 r1437  
    99  Copyright (C) 2008 Peter Johansson
    1010
    11   This file is part of the yat library, http://trac.thep.lu.se/yat
     11  This file is part of the yat library, http://dev.thep.lu.se/yat
    1212
    1313  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/OneDimensional.cc

    r1275 r1437  
    66  Copyright (C) 2008 Peter Johansson
    77
    8   This file is part of the yat library, http://trac.thep.lu.se/yat
     8  This file is part of the yat library, http://dev.thep.lu.se/yat
    99
    1010  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/OneDimensional.h

    r1275 r1437  
    99  Copyright (C) 2008 Peter Johansson
    1010
    11   This file is part of the yat library, http://trac.thep.lu.se/yat
     11  This file is part of the yat library, http://dev.thep.lu.se/yat
    1212
    1313  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/OneDimensionalWeighted.cc

    r1275 r1437  
    44  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
    55
    6   This file is part of the yat library, http://trac.thep.lu.se/yat
     6  This file is part of the yat library, http://dev.thep.lu.se/yat
    77
    88  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/OneDimensionalWeighted.h

    r1275 r1437  
    99  Copyright (C) 2008 Peter Johansson
    1010
    11   This file is part of the yat library, http://trac.thep.lu.se/yat
     11  This file is part of the yat library, http://dev.thep.lu.se/yat
    1212
    1313  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/Polynomial.cc

    r1275 r1437  
    66  Copyright (C) 2008 Peter Johansson
    77
    8   This file is part of the yat library, http://trac.thep.lu.se/yat
     8  This file is part of the yat library, http://dev.thep.lu.se/yat
    99
    1010  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/Polynomial.h

    r1275 r1437  
    88  Copyright (C) 2008 Peter Johansson
    99
    10   This file is part of the yat library, http://trac.thep.lu.se/yat
     10  This file is part of the yat library, http://dev.thep.lu.se/yat
    1111
    1212  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/PolynomialWeighted.cc

    r1275 r1437  
    55  Copyright (C) 2008 Peter Johansson
    66
    7   This file is part of the yat library, http://trac.thep.lu.se/yat
     7  This file is part of the yat library, http://dev.thep.lu.se/yat
    88
    99  The yat library is free software; you can redistribute it and/or
  • trunk/yat/regression/PolynomialWeighted.h

    r1275 r1437  
    88  Copyright (C) 2008 Peter Johansson
    99
    10   This file is part of the yat library, http://trac.thep.lu.se/yat
     10  This file is part of the yat library, http://dev.thep.lu.se/yat
    1111
    1212  The yat library is free software; you can redistribute it and/or
Note: See TracChangeset for help on using the changeset viewer.