-
OK, if that is what you need, then the following C# code will do the job. // Sample data from the true discrete Vector trueProbs = new Vector (0.1, 0.2, 0.3, 0.4); Discrete trueDistrib = new Discrete (trueProbs); int [] data = new int [1000]; for ( int i = 0; i < data.Length; i++) data[ i ] = Rand...