Ignore:
Timestamp:
Feb 22, 2008, 12:18:41 AM (14 years ago)
Author:
Peter
Message:

vector is now Vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/PCA.cc

    r1098 r1120  
    4747
    4848
    49   const utility::vector& PCA::eigenvalues(void) const
     49  const utility::Vector& PCA::eigenvalues(void) const
    5050  {
    5151    return eigenvalues_;
     
    147147    utility::matrix projs( Ncol, Ncol );
    148148
    149     utility::vector temp(samples.rows());
     149    utility::Vector temp(samples.rows());
    150150    for( size_t j = 0; j < Ncol; ++j ) {
    151151      for (size_t i=0; i<Ncol; ++i )
    152152        temp(i) = samples(i,j);
    153       utility::vector centered( Nrow );
     153      utility::Vector centered( Nrow );
    154154      for( size_t i = 0; i < Nrow; ++i )
    155155        centered(i) = temp(i) - meanvalues_(i);
    156       utility::vector proj( eigenvectors_ * centered );
     156      utility::Vector proj( eigenvectors_ * centered );
    157157      for( size_t i = 0; i < Ncol; ++i )
    158158        projs(i,j)=proj(i);
     
    191191  void PCA::row_center(utility::matrix& A_center)
    192192  {
    193     meanvalues_ = vector(A_.rows());
    194     utility::vector A_row_sum(A_.rows());
     193    meanvalues_ = Vector(A_.rows());
     194    utility::Vector A_row_sum(A_.rows());
    195195    for (size_t i=0; i<A_row_sum.size(); ++i){
    196196      A_row_sum(i) = sum(A_.row_const_view(i));
Note: See TracChangeset for help on using the changeset viewer.