yes sure. just didn't understand the -1 at the end :)
On Fri, Jul 8, 2011 at 6:35 PM, Chris Cunningham <cunningham.cb(a)gmail.com>wrote;wrote:
On Fri, Jul 8, 2011 at 1:40 AM, Andre Hora
<andrehoraa(a)gmail.com> wrote:
FAMIXPackagerelativeImportanceForSystem
^ self lookUpPropertyNamed: #PRIS
computedAs: [ self numberOfClientPackages / (self
mooseModel allModelPackages size - 1)]
or just protect against zero:
FAMIXPackagerelativeImportanceForSystem
^ self lookUpPropertyNamed: #PRIS
computedAs: [ self numberOfClientPackages / ((self
mooseModel allModelPackages size - 1) max: 1)]
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev