net.sf.classifier4J.vector
Class VectorUtils

java.lang.Object
  |
  +--net.sf.classifier4J.vector.VectorUtils

public class VectorUtils
extends java.lang.Object


Constructor Summary
VectorUtils()
           
 
Method Summary
static double cosineOfVectors(int[] one, int[] two)
           
static int scalarProduct(int[] one, int[] two)
           
static double vectorLength(int[] vector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorUtils

public VectorUtils()
Method Detail

scalarProduct

public static int scalarProduct(int[] one,
                                int[] two)
                         throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

vectorLength

public static double vectorLength(int[] vector)
                           throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

cosineOfVectors

public static double cosineOfVectors(int[] one,
                                     int[] two)
                              throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException


Copyright © 2003-2005 Nick Lothian. All Rights Reserved.