/** * Returns a {@link MatrixBuilder} in the default format of the fastest * available {@link SVD.Algorithm SVD algorithm}. * * @return a matrix builder to be used in creating a matrix for use with the * {@link SVD} class */ public static MatrixBuilder getMatrixBuilderForSVD() { return getMatrixBuilderForSVD(false); }
/** * Returns a {@link MatrixBuilder} in the default format of the fastest * available {@link SVD.Algorithm SVD algorithm}. * * @return a matrix builder to be used in creating a matrix for use with the * {@link SVD} class */ public static MatrixBuilder getMatrixBuilderForSVD() { return getMatrixBuilderForSVD(false); }
/** * Constructs the {@code LatentSemanticAnalysis} using the specified * properties for configuration. * * @throws IOException if this instance encounters any errors when creatng * the backing array files required for processing */ public LatentSemanticAnalysis(Properties properties) throws IOException { termToIndex = new ConcurrentHashMap<String,Integer>(); termIndexCounter = new AtomicInteger(0); termDocumentMatrixBuilder = Matrices.getMatrixBuilderForSVD(); wordSpace = null; documentSpace = null; }
/** * Constructs the {@code LatentSemanticAnalysis} using the specified * properties for configuration. * * @throws IOException if this instance encounters any errors when creatng * the backing array files required for processing */ public LatentSemanticAnalysis(Properties properties) throws IOException { termToIndex = new ConcurrentHashMap<String,Integer>(); termIndexCounter = new AtomicInteger(0); termDocumentMatrixBuilder = Matrices.getMatrixBuilderForSVD(); wordSpace = null; documentSpace = null; }
/** * Constructs the {@code GenericTermDocumentVectorSpace}. * * @throws IOException if this instance encounters any errors when creatng * the backing array files required for processing */ public GenericTermDocumentVectorSpace() throws IOException { this(false,new StringBasisMapping(),Matrices.getMatrixBuilderForSVD()); }
/** * Constructs the {@code GenericTermDocumentVectorSpace}. * * @throws IOException if this instance encounters any errors when creatng * the backing array files required for processing */ public GenericTermDocumentVectorSpace() throws IOException { this(false,new StringBasisMapping(),Matrices.getMatrixBuilderForSVD()); }