Boost logo

Boost Users :

Subject: Re: [Boost-users] ranking of ublas vector
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-03-14 11:04:09


Am 14.03.2010 um 15:42 schrieb Steven Watanabe:

> AMDG
>
> Kraus Philipp wrote:
>> I think the problem is:
>>
>> we discuss about the "rank" and the "rank index".
>>
>> I my problem I only need the rank index and the value
>> to calculate a new value like: exp( -rank_index) * vec(rank_index)
>>
>> So the smallest element in vec will be multiply with 1 and other
>> elements with values < 1
>
> This doesn't quite add up for me.
>
> Taking the example from before, you have
> [4](0.405121, 0.943918, 0.887914, 0.338921) and
> [4](3, 0, 2, 1)
>
> You don't want exp(-3) * vec(3), right? Is
> exp(-0) * vec(3), exp(-1) * vec(0), ... correct?

Exactly. This rank option is used in neuronal networks
for setting the "winner" neuron. I hope this option
will be set up into the boost standard :-P

Thanks

Phil


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net