8 #ifndef SIG_UTIL_COSINE_SIMILARITY_HPP
9 #define SIG_UTIL_COSINE_SIMILARITY_HPP
21 template<
class C1,
class C2>
const CosineSimilarity cosine_similarity
コサイン類似度を求める関数(関数オブジェクト)
double operator()(C1 const &vec1, C2 const &vec2) const
const Norm< 2 > norm_L2
L2ノルムを求める関数(関数オブジェクト)
auto end(C &&c) -> std::move_iterator< typename RC::iterator >
bool is_comparable(C1 const &v1, C2 const &v2, impl::NumericVectorTag)
2つのベクトルが比較可能か確認
コサイン類似度(Cosine Similarity)
auto begin(C &&c) -> std::move_iterator< typename RC::iterator >