Quote:
Yes, I mentioned that x=ceil(30*log10(arrData))+1 , y=floor(30*log10(arrData)), and I accomplished them (arrData is the x ,and y is the arrData2) . And now I need : newdataset=y-x+1
(I update the question, because I forgot to mentioned it, by mistake)
All you need to calculate result is:
Dim arrData = strFileName _
.Select(Function(x) New With _
{
.a = Double.Parse(x.Split(New String(){Microsoft.VisualBasic.vbTab}, StringSplitOptions.RemoveEmptyEntries)(0), style, cu), _
.b = Double.Parse(x.Split(New String(){Microsoft.VisualBasic.vbTab}, StringSplitOptions.RemoveEmptyEntries)(1), style, cu) _
}) _
.ToList()
For Each d In arrData
Dim x = Math.Ceiling(30*Math.Log10(d.a))+1
Dim y = Math.Floor(30*Math.Log10(d.b))
Console.WriteLine("{0}-{1}+1={2}", y, x, y-x+1)
Next
Reult:
-11--38+1=28
-8--35+1=28
-5--33+1=29
-3--31+1=29
-1--30+1=30
0--29+1=30
...
Change the code to your needs, if i misunderstood you.