Re: Creating a Listable Function
- To: mathgroup at smc.vnet.net
- Subject: [mg73552] Re: Creating a Listable Function
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 21 Feb 2007 06:04:58 -0500 (EST)
- Organization: Uni Leipzig
- References: <ergqjm$j0v$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, SetAttributes[VarPop,Listable] ?? Regards Jens Gregory Lypny wrote: > Hello everyone, > > I've created a function for population variance, which does not make > use of Mathematica's built-in Variance function. > > VarPop[x_] := Total[(x - Mean@x)^2]/Length@x > > How do I need to change the definition to have the function operate > across lists much like Total, Mean, and Variance do? > > Regards, > > Greg >
- Follow-Ups:
- Re: Re: Creating a Listable Function
- From: János <janos.lobb@yale.edu>
- Re: Re: Creating a Listable Function