Skip to content

Commit

Permalink
rename apply -> apply_one
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 21, 2012
1 parent 39bb66e commit fd4e728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shogun/machine/DistanceMachine.cpp
Expand Up @@ -216,7 +216,7 @@ CMulticlassLabels* CDistanceMachine::apply_multiclass(CFeatures* data)
/* build result labels and classify all elements of procedure */
CMulticlassLabels* result=new CMulticlassLabels(data->get_num_vectors());
for (index_t i=0; i<data->get_num_vectors(); ++i)
result->set_label(i, apply(i));
result->set_label(i, apply_one(i));
return result;
}
else
Expand All @@ -230,7 +230,7 @@ CMulticlassLabels* CDistanceMachine::apply_multiclass(CFeatures* data)
return NULL;
}

float64_t CDistanceMachine::apply(int32_t num)
float64_t CDistanceMachine::apply_one(int32_t num)
{
/* number of clusters */
CFeatures* lhs=distance->get_lhs();
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/machine/DistanceMachine.h
Expand Up @@ -124,7 +124,7 @@ class CDistanceMachine : public CMachine
* @param num which example to apply machine to
* @return cluster label nearest to example
*/
virtual float64_t apply(int32_t num);
virtual float64_t apply_one(int32_t num);

protected:
/** Ensures cluster centers are in lhs of underlying distance
Expand Down

0 comments on commit fd4e728

Please sign in to comment.