sorry...it's a bit of a programming question
-
In the Q&A, I was just told that VS 2005 doesn't have an Average function standard. Am I just crazy but if he's using c#, doesn't that mean that any version of it has System.Math?
-
In the Q&A, I was just told that VS 2005 doesn't have an Average function standard. Am I just crazy but if he's using c#, doesn't that mean that any version of it has System.Math?
And which average would it use? Mean, Median, etc.... Linq does provide an Average function, but it doesn't give you a way to choose which type of average to apply. BTW - pedantically, VS2005 is the IDE; you're thinking of .NET 2 which was introduced at the same time (and doesn't use LINQ).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
And which average would it use? Mean, Median, etc.... Linq does provide an Average function, but it doesn't give you a way to choose which type of average to apply. BTW - pedantically, VS2005 is the IDE; you're thinking of .NET 2 which was introduced at the same time (and doesn't use LINQ).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
Actually, it wasn't me saying that VS2005 didn't have it. I know that 2005 is an IDE. Which is why my question was, if he's using C# doesn't he have System.Math? But, I guess looking at it, System.Math doesn't have an average function (also generally known as mean and what Linq uses). Really, though, you don't need to have a mean function to calculate the mean, it's about as basic a function as you can write. I just wanted to make sure I wasn't crazy thinking that any version of C# had a System.Math library.