Ignore:
Timestamp:
Mar 19, 2009, 1:35:47 PM (13 years ago)
Author:
Peter
Message:

fixes #504. Also added pp macro YAT_ASSERT that calls yat_assert with an appropriate msg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/KNN.h

    r1487 r1875  
    66/*
    77  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
     8  Copyright (C) 2009 Peter Johansson
    89
    910  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    212213        (*distances)(i,j) = distance_(training.begin_column(i), training.end_column(i),
    213214                                      test.begin_column(j));
    214         utility::yat_assert<std::runtime_error>(!std::isnan((*distances)(i,j)));
     215        YAT_ASSERT(!std::isnan((*distances)(i,j)));
    215216      }
    216217    }
Note: See TracChangeset for help on using the changeset viewer.