|
calculateRetrievalStatusValue
calculateRetrievalStatusValue (self, d, p, q)
|
Added to advas-0.0.4 as funcrion calc_rsv, and renamed in advas-0.2.5.
Calculates the document weight for descriptors including their
probability of existance. The method expects a list of pairs with 0 and
1, or as float values, accordingly.
In: |
d |
list of values displaying the existance (1) or non-existance (0) of a descriptor |
|
p |
list of probabilities of existance for the given
descriptor d |
|
q |
list of probabilities of non-existance for the given
descriptor d |
|
|
|
Out: |
|
Retrieval Status Value (rsv) as a float value. The
higher the rsv, the more relevant is the document in terms of the given
descriptor d, and their probabilities p and q. A
value of 0 means that the document is non-relevant. In case the given
lists differ in the number of elements, the return value is 0, too,
because the rsv cannot be calculated properly. |
|
|