Exemple #1
0
        /// <summary>
        /// Create a PaddedDouble object from a sequence of RowKeyColKeyValue triples.
        /// </summary>
        /// <param name="tripleEnumerable">a sequence of RowKeyColKeyValue</param>
        /// <returns>A PaddedDouble object</returns>
        public static PaddedDouble GetInstanceFromSparse(IEnumerable <RowKeyColKeyValue <string, string, double> > tripleEnumerable)
        {
            PaddedDouble paddedDouble = new PaddedDouble();

            paddedDouble.GetInstanceFromSparseInternal(tripleEnumerable);
            return(paddedDouble);
        }
Exemple #2
0
        /// <summary>
        /// Create an instance of PaddedDouble from a sparse input file
        /// </summary>
        /// <param name="inputSparsePattern">The sparse input file</param>
        /// <returns>A PaddedDouble</returns>
        public static PaddedDouble GetInstanceFromSparse(string inputSparsePattern)
        {
            PaddedDouble paddedDouble = new PaddedDouble();

            paddedDouble.GetInstanceFromSparseInternal(inputSparsePattern);
            return(paddedDouble);
        }