Esempio n. 1
0
        public static           FeatureValue[] NewArray(IList <float> values)
        {
            var result = new FeatureValue[values.Count];

            for (var i = 0; i < result.Length; i++)
            {
                result[i] = new FeatureValue(values[i]);
            }

            return(result);
        }
Esempio n. 2
0
        public static           FeatureValue[] NewArray(string value, int length)
        {
            var result = new FeatureValue[length];

            for (var i = 0; i < result.Length; i++)
            {
                result[i] = new FeatureValue(value);
            }

            return(result);
        }