Having an object in a list know statistical information about that list
<p>For the sake of argument I have Person Objects</p>

<pre><code>public class Person
{
    public int Age { get; set; }
    public string Name { get; set; }
}
</code></pre>

<p>I need to have a List  or something similar where each person can tell if they are older or younger than the average age. (Ideally I want to say top 10% and bottom 10%) but I will settle for over under median.</p>

<p>Is there a way to do this?</p>

<pre><code>List&lt;Person&gt; people = new List&lt;Person&gt;();
//Fill People
foreach(var person in people)
{ 
  if (person.TopTenPercent)
  { 
     Console.WriteLine(person.Name);
  }
}
</code></pre>

<p>Thanks 
Mark</p>
