Ejemplo n.º 1
0
        /// <summary>
        /// Creates an DenseAnsi with values missing.
        /// </summary>
        /// <param name="rowKeySequence">A sequence of row keys. The items will become the RowKeys of the Matrix.</param>
        /// <param name="colKeySequence">A sequence of colKeys. The items will come the ColKeys of the Matrix.</param>
        /// <param name="missingValue">The special Missing value, which must be '?'</param>
        /// <returns>A new, empty, DenseAnsi</returns>
        static public DenseAnsi CreateEmptyInstance(IEnumerable <string> rowKeySequence, IEnumerable <string> colKeySequence, char missingValue)
        {
            Helper.CheckCondition(missingValue.Equals(StaticMissingValue), "For DenseAnsi the missingValue must be '{0}'", StaticMissingValue); //OK to use Equals because char can't be null
            DenseAnsi denseAnsi = new DenseAnsi();

            denseAnsi.InternalCreateEmptyInstance(rowKeySequence, colKeySequence);
            return(denseAnsi);
        }