Sha256: 5122306fdd77664b3e33131ac83ea24b391b8fb013d747fa14af0a9d914005fd

Contents?: true

Size: 1.02 KB

Versions: 13

Compression:

Stored size: 1.02 KB

Contents

// Copyright (C) 2010  Davis E. King (davis@dlib.net)
// License: Boost Software License   See LICENSE.txt for the full license.
#ifndef DLIB_NULL_DECISION_FUnCTION_Hh_
#define DLIB_NULL_DECISION_FUnCTION_Hh_

#include <iostream>

namespace dlib
{

// ----------------------------------------------------------------------------------------

    struct null_df
    {
        /*!
            WHAT THIS OBJECT REPRESENTS
                This is a type used to represent an unused field in the list of template 
                arguments of the one_vs_one_decision_function and one_vs_all_decision_function 
                templates.  As such, null_df doesn't actually do anything.
        !*/
        template <typename T>
        double operator() ( const T&) const { return 0; }
    };

    inline void serialize(const null_df&, std::ostream&) {}
    inline void deserialize(null_df&, std::istream&) {}

// ----------------------------------------------------------------------------------------

}

#endif // DLIB_NULL_DECISION_FUnCTION_Hh_

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dlib-1.2.2 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.2.1 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.2.0 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.1.5 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.1.4 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.1.3 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.1.2 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.1.1 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.1.0 ext/dlib-19.4/dlib/svm/null_df.h
dlib-1.0.3 ext/dlib-18.13/dlib/svm/null_df.h
dlib-1.0.2 ext/dlib-18.13/dlib/svm/null_df.h
dlib-1.0.1 ext/dlib-18.13/dlib/svm/null_df.h
dlib-1.0.0 ext/dlib-18.13/dlib/svm/null_df.h