[Numpy-discussion] Broadcasting rules (Ticket 76).

Sasha ndarray at mac.com
Wed Apr 26 16:16:07 CDT 2006


On 4/26/06, Sasha <ndarray at mac.com> wrote:
> On 4/26/06, Bill Baxter <wbaxter at gmail.com> wrote:
> > Is that a representative example?   It seems highly unlikely that in real
> > life every one of the schools would have exactly 20 classes, and each of
> > those exactly 30 students.
>
> You should not take my toy example too seriousely.  However, with
> support for missing values, 3-d arrays may provide an efficient
> representation for a more realistic scenario when you only know upper
> bounds for the number of students/classes.  Smaller schools will have
> missing values in their arrays.

In addition, it is reasonable to sample a fixed number of classes from
each school and a fixed number of students from each class at random
for a statistical study.




More information about the Numpy-discussion mailing list