Re: proportionality problem
- From: Kai-Uwe Bux <jkherciueh@xxxxxxx>
- Date: Sat, 25 Feb 2006 17:23:30 -0500
Digital Puer wrote:
Suppose I have a list of resources, where each resource is
assigned a quality value 1 to 10, inclusive, where 1 is the
highest quality. I want to assign resource requests to each
of these resources in proportion to their quality value.
For example, if I have two resources A and B with quality
values 1 and 4, respectively, I would assign requests to
A and B with a 4:1 ratio because A has 4x the value of B.
How can I extend this to the general case with multiple
resources? For example, if A, B, and C have values 1, 2,
3, how would requests be assigned to A, B, and C? I think
it would be 6:3:2. What's a good way to compute this?
Your examples indicate that you want:
Qualities Requests
1 to 4 1 to 0.25
Qualities Requests
1 to 2 to 3 1 to 0.5 to 0.3333...
If that is what you want, it looks pretty simple.
Best
Kai-Uwe Bux
.
- References:
- proportionality problem
- From: Digital Puer
- proportionality problem
- Prev by Date: proportionality problem
- Next by Date: Re: init
- Previous by thread: proportionality problem
- Next by thread: Re: proportionality problem
- Index(es):
Relevant Pages
|