■ Tools 클래스의 XYToIntensities 정적 메소드를 사용해 X, Y 배열에서 강도(Intensitiy) 배열을 만드는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
using System; using System.Linq; using ScottPlot; Random random = new Random(0); int[] xValueArray = DataGen.RandomNormal(random, 50000, 250, 100).Select(x => (int)x).ToArray(); int[] yValueArray = DataGen.RandomNormal(random, 50000, 250, 100).Select(y => (int)y).ToArray(); double[,] intensityArray = Tools.XYToIntensities ( mode : IntensityMode.Gaussian, xs : xValueArray, ys : yValueArray, width : 500, height : 500, sampleWidth : 4 ); |