TC Java
2009 Version

gov.nih.nlm.nls.tc.Lib
Class Count1fOperator

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Lib.Count1fOperator

public class Count1fOperator
extends java.lang.Object

This class provides Count1f St Score Vector operation

History:

Version:
V-2009
Author:
NLM Lexical Systems Group

Constructor Summary
Count1fOperator()
          Create the Count1f ST operator object.
 
Method Summary
static float GetCosCoefficient(java.util.Vector<Count1f> vec1, java.util.Vector<Count1f> vec2)
          Get the cosine coefficients for two Vector in Count1f.
static Count1f GetCosCoefficientObj(java.util.Vector<Count1f> vec1, java.util.Vector<Count1f> vec2)
          Get the cosine coefficients for two Vector in Count1f.
static java.util.Vector<Count1f> Standardize(java.util.Vector<Count1f> inVec, JournalDescriptors jds)
          Standardize the Count1f Vector by rearrnging the vector in index order and fill 0 in empty elements.
static java.util.Vector<Count1f> Standardize(java.util.Vector<Count1f> inVec, SemanticTypes sts)
          Standardize the order of ST scores.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Count1fOperator

public Count1fOperator()
Create the Count1f ST operator object.

Method Detail

GetCosCoefficientObj

public static Count1f GetCosCoefficientObj(java.util.Vector<Count1f> vec1,
                                           java.util.Vector<Count1f> vec2)
Get the cosine coefficients for two Vector in Count1f.

Parameters:
vec1 - input Vector 1 for cosine coefficients
vec2 - input Vector 2 for cosine coefficients
Returns:
cosine coefficients in Count1f

GetCosCoefficient

public static float GetCosCoefficient(java.util.Vector<Count1f> vec1,
                                      java.util.Vector<Count1f> vec2)
Get the cosine coefficients for two Vector in Count1f.

Parameters:
vec1 - input Vector 1 for cosine coefficients
vec2 - input Vector 2 for cosine coefficients
Returns:
cosine coefficients in float

Standardize

public static java.util.Vector<Count1f> Standardize(java.util.Vector<Count1f> inVec,
                                                    SemanticTypes sts)
Standardize the order of ST scores. This method rearrnges the vector in index order and fill 0 in empty elements. Element will not be added to outVec if it's tui is not in the sts.

Parameters:
inVec - Vector of ST scores to be standardized
sts - Semantic Types Object
Returns:
standardized Vector for ST scores in Count1f

Standardize

public static java.util.Vector<Count1f> Standardize(java.util.Vector<Count1f> inVec,
                                                    JournalDescriptors jds)
Standardize the Count1f Vector by rearrnging the vector in index order and fill 0 in empty elements. Element will not be in the outVec if it's jdid is not in jds.

Parameters:
inVec - Vector in Count1f to be standardized
jds - Journal Descriptos Object
Returns:
standardized Vector in Count1f

TC Java
2009 Version

Submit a bug or feature

Copyright © 2009 National Library of Medicine