double version of Enumerable.Range - CSharp System.Collections

CSharp examples for System.Collections:IEnumerable

Description

double version of Enumerable.Range

Demo Code

// Permission is hereby granted, free of charge, to any person obtaining a copy
using MicrosoftResearch.Infer.Maths;
using System.Linq;

public class Main{
        /// <summary>
        /// double version of Enumerable.Range
        /// </summary>
        /// <param name="start">The starting value.</param>
        /// <param name="count">The number of items.</param>
        public static double[] DoubleRange(int start, int count)
        {//from w ww  .j av a  2  s  .  c  o m
            return Enumerable.Range(start, count).Select(x => (double) x).ToArray();
        }
}

Related Tutorials