public void Create1DNums() { string data = string.Empty; int sampleNum = 0; for (int i = 0; i < numCount - 1; i++) { sampleNum = Random.Range(-2000, 2000); data += $"{sampleNum},"; } sampleNum = Random.Range(-2000, 2000); data += sampleNum.ToString(); FileCreator.createFIle("1DSampleInput", data); }
public void fillInputDataRandomly() { int rowCount = Random.Range(50, 100); int coloumnCount = Random.Range(50, 100); inputData = new int[rowCount, coloumnCount]; for (int i = 0; i < inputData.GetLength(0); i++) { for (int j = 0; j < inputData.GetLength(1); j++) { inputData[i, j] = Random.Range(-10000, 10000); } } FileCreator.createFIle("PeakFinder2dInput", JsonConvert.SerializeObject(inputData)); }
public void createFiles() { FileCreator.createFIle(firstFileName, "hello naughty black dog"); //FileCreator.createFIle(firstFileName, "bye calm green dog"); FileCreator.createFIle(secondFileName, "hello naughty black cat"); }
public void printArray(ref int[] inputArray) { FileCreator.createFIle("1DArryJson", JsonConvert.SerializeObject(inputArray)); }