In this code i return the result from some operation in []x
and []y
. I read the data of them from text file:
double[] x = File.ReadAllLines(@"E:\TestFile.txt").Aggregate("", (current, newLine) => current + " " + newLine).Split(' ').Where(s => !string.IsNullOrWhiteSpace(s)).Select(s => double.Parse(s)).ToArray();
double[] y = File.ReadAllLines(@"E:\TestFile2.txt").Aggregate("", (current, newLine) => current + " " + newLine).Split(' ').Where(s => !string.IsNullOrWhiteSpace(s)).Select(s => double.Parse(s)).ToArray();
SimpleDTW dtw = new SimpleDTW(x, y);
dtw.computeDTW();
double result = new SimpleDTW(x, y).computeFForward();
Console.WriteLine("the paramter is " +result);
I want to find the name of two parameters that I call in the function.
For example: when I replace the two parameters x,y
by z,y
the input is the paramter is z,y
I want to return the name of parameter automatically. I want if we change paramters name print newest name automatically .