Files
secondo/Algebras/ImageSimilarity/fast_kmeans/naive_kernel_kmeans.h

55 lines
1.3 KiB
C
Raw Normal View History

2026-01-23 17:03:45 +08:00
/*
----
This file is NOT part of SECONDO.
* Authors: Greg Hamerly and Jonathan Drake
* Feedback: hamerly@cs.baylor.edu
* See: http://cs.baylor.edu/~hamerly/software/kmeans.php
* Copyright 2014
*
* NaiveKernelKmeans is a kernelized k-means algorithm that has no acceleration
* applied.
----
//paragraph [1] Title: [{\Large \bf \begin{center}] [\end{center}}]
//[TOC] [\tableofcontents]
[1] Declarations for the NaiveKernelKmeans algorithm
1 Declarations for the NaiveKernelKmeans algorithm
*/
#ifndef NAIVE_KERNEL_KMEANS_H
#define NAIVE_KERNEL_KMEANS_H
/* Authors: Greg Hamerly and Jonathan Drake
* Feedback: hamerly@cs.baylor.edu
* See: http://cs.baylor.edu/~hamerly/software/kmeans.php
* Copyright 2014
*
* NaiveKernelKmeans is a kernelized k-means algorithm that has no acceleration
* applied.
*/
#include "kernel_kmeans.h"
class NaiveKernelKmeans : public KernelKmeans {
public:
NaiveKernelKmeans(Kernel const *k) : KernelKmeans(k) {}
virtual ~NaiveKernelKmeans() { free(); }
virtual std::string getName() const {
std::ostringstream out;
out << "naive_kernel(" << kernel.getName() << ")";
return out.str();
}
protected:
int runThread(int threadId, int maxIterations);
};
#endif