Commit 3db2ece6 authored by Davis King's avatar Davis King

Minor cleanup, I removed unnecessary code.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404187
parent 514e0f38
...@@ -64,20 +64,6 @@ namespace dlib ...@@ -64,20 +64,6 @@ namespace dlib
basis_vectors(basis_vectors_) basis_vectors(basis_vectors_)
{} {}
decision_function& operator= (
const decision_function& d
)
{
if (this != &d)
{
alpha = d.alpha;
b = d.b;
kernel_function = d.kernel_function;
basis_vectors = d.basis_vectors;
}
return *this;
}
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
...@@ -169,19 +155,6 @@ namespace dlib ...@@ -169,19 +155,6 @@ namespace dlib
decision_funct(decision_funct_) decision_funct(decision_funct_)
{} {}
probabilistic_function& operator= (
const probabilistic_function& d
)
{
if (this != &d)
{
alpha = d.alpha;
beta = d.beta;
decision_funct = d.decision_funct;
}
return *this;
}
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
...@@ -277,19 +250,6 @@ namespace dlib ...@@ -277,19 +250,6 @@ namespace dlib
decision_funct(decision_funct_) decision_funct(decision_funct_)
{} {}
probabilistic_decision_function& operator= (
const probabilistic_decision_function& d
)
{
if (this != &d)
{
alpha = d.alpha;
beta = d.beta;
decision_funct = d.decision_funct;
}
return *this;
}
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
...@@ -454,20 +414,6 @@ namespace dlib ...@@ -454,20 +414,6 @@ namespace dlib
const sample_vector_type& get_basis_vectors ( const sample_vector_type& get_basis_vectors (
) const { return basis_vectors; } ) const { return basis_vectors; }
distance_function& operator= (
const distance_function& d
)
{
if (this != &d)
{
alpha = d.alpha;
b = d.b;
kernel_function = d.kernel_function;
basis_vectors = d.basis_vectors;
}
return *this;
}
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
......
...@@ -75,15 +75,6 @@ namespace dlib ...@@ -75,15 +75,6 @@ namespace dlib
b term, and kernel function. b term, and kernel function.
!*/ !*/
decision_function& operator= (
const decision_function& d
);
/*!
ensures
- #*this is identical to d
- returns *this
!*/
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
...@@ -179,15 +170,6 @@ namespace dlib ...@@ -179,15 +170,6 @@ namespace dlib
and decision function. and decision function.
!*/ !*/
probabilistic_function& operator= (
const probabilistic_function& d
);
/*!
ensures
- #*this is identical to d
- returns *this
!*/
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
...@@ -299,15 +281,6 @@ namespace dlib ...@@ -299,15 +281,6 @@ namespace dlib
and decision_function. and decision_function.
!*/ !*/
probabilistic_decision_function& operator= (
const probabilistic_decision_function& d
);
/*!
ensures
- #*this is identical to d
- returns *this
!*/
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
...@@ -518,15 +491,6 @@ namespace dlib ...@@ -518,15 +491,6 @@ namespace dlib
- returns the set of basis vectors contained in this object - returns the set of basis vectors contained in this object
!*/ !*/
distance_function& operator= (
const distance_function& d
);
/*!
ensures
- #*this is identical to d
- returns *this
!*/
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const; ) const;
...@@ -696,15 +660,6 @@ namespace dlib ...@@ -696,15 +660,6 @@ namespace dlib
- populates this object with the vector_normalizer and function object - populates this object with the vector_normalizer and function object
!*/ !*/
normalized_function& operator= (
const normalized_function& d
);
/*!
ensures
- #*this is identical to d
- returns *this
!*/
result_type operator() ( result_type operator() (
const sample_type& x const sample_type& x
) const ) const
...@@ -797,15 +752,6 @@ namespace dlib ...@@ -797,15 +752,6 @@ namespace dlib
and kernel function. and kernel function.
!*/ !*/
projection_function& operator= (
const projection_function& d
);
/*!
ensures
- #*this is identical to d
- returns *this
!*/
long out_vector_size ( long out_vector_size (
) const; ) const;
/*! /*!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment