using System;
using System.Collections.Generic;
using System.Text;
namespace WawaSoft.Search.Common
{
public class TermVector
{
public static double ComputeCosineSimilarity(double[] vector1, double[] vector2)
{
if (vector1.Length != vector2.Length)
throw new Exception("DIFER LENGTH");