NAME
Algorithm::KernelKMeans::Util
DESCRIPTION
This module provides some utility functions suitable to use with Algorithm::KernelKMeans.
FUNCTIONS
This module exports nothing by default. You can import functions below:
centroid($cluster)
Takes array ref of vertices and returns centroid vector of the cluster.
generate_polynominal_kernel([$l = 1], [$p = 2])
Generates a polynominal kernel function and returns it.
The generated kernel function will be formed K(x1, x2) = ($l + x1 . x2)^$p ("x1 . x2" means inner product).
AUTHOR
Koichi SATOH <r.sekia@gmail.com>