scores

Calculate final scores in a game relative to previous scores and other players.

Supposing a multi-player game, what you be the fairest way give final scores based on the previous scores of all players. For example, in a two player match, player A having two times the score of player B. "A" finishing first would not give him a lot of points; finishing last, he would lose quite a lot of points. ...

Calculate score in a pyramid score system

I am trying to calculate gamescores for a bunch over users and I haven't really got it yet. It is a pyramid game where you can invite people, and the people you invite is placed beneth you in the relations tree. So if i invite X and X invites Y i get kickback from both of them. Let's say 10%^steps... So from X i get 10% of his score an...

Lucene multiple indexes : Normalize document scores??

Hi All. Suppose I've got multiple lucene indexes (not replicas) on several PC's. I query each index and then merge the results. Is there any way to normalize the document scores so that I could sort by score (relevance)? I mean, the scores for document A from index A would not be comparable with document B from index B, unless I do s...

How to apply default sorting in lucene on equal scores?

Good day, If I have for example the documents which have the following fields Person_name - Birthday Jordan - 2009-06-15 Marc - 2009-01-01 Marcos - 2009-01-01 Marcissh_something_something - 2009-06-15 Marcos - 2009-12-31 And upon searching for Person_name:Marc* I got the following scores (scores here are hypothetical) Person_name - ...

Assign places in the rating (MySQL, PHP)

Hi guys! I have a MySQL database with the following columns: id company rating_score rating_place I have companies and rating scores for each company. So, my db looks like: id company rating_score rating_place 75 Intel 356.23 34 Sun 287.49 etc. How can I assign the p...

Document score effecting the sort order of results, Lucene

Even after passing a sortfield, score of the document is effecting the sort order of the search results. Is there a way to make lucene to ignore the document score when a specific sort field is passed? For ex: DocId Score SortFieldA SortFieldB 1 23.0041 200906030800 Test 2 32.2774 200906020...

Create a dataset: extract features from text documents (TF-IDF)

I've to create a dataset from some text files, writing them as vectors of features. Something like this: doc1: 1,0.45 6,0.001 94,0.1 ... doc2: 3,0.5 98,0.2 ... ... each position of the vector represent a word, and the score is given by something like TF-IDF. Do you know some library/tool/whatever for this? (java is better) ...

Java: How to check the random letters from a-z, out of 10 letters minimum 2 letter should be a vowels.

I am writing a program to validate the following scenarios: Scenario 1: I am using the Random class from java.util. The random class will generate 10 letters from a-z and within 10 letter, minimum 2 letters must be a vowels. Scenario 2: When the player 1 and player 2 form a word from A-Z, he will score some points. There will be a s...

Solr: fieldNorm different per document, with no document boost

I want my search results to order by score, which they are doing, but the score is being calculated improperly. This is to say, not necessarily improperly, but differently than expected and I'm not sure why. My goal is to remove whatever is changing the score. If I perform a search that matches on two objects (where ObjectA is expecte...

When to use geometric vs arithmetic mean?

So I guess this isn't technically a code question, but it's something that I'm sure will come up for other folks as well as myself while writing code, so hopefully it's still a good one to post on SO. The Google has directed me to plenty of nice lengthy explanations of when to use one or the other as regards financial numbers, and thing...

Flash Game Creating Score-Dynamic Text Field (AS3)

Creating a pacman-like game, where a player eats objects. When a MovieClip (box) eats a circle on the stage, the score in the dynamic text field should go up by 10 points. Receiving an error: line: `scoreField.text = " " + string(currentScore); error message: Call to a possibly undefined method string. package { import flash.displ...

FULLTEXT query with scores/ranks in Postgresql

Im new to Postgres and I dont know how to translate this MySQL query to postgres: SELECT pictures.id, MATCH (title, cached_tag_list) AGAINST ('phrase') AS score FROM pictures WHERE MATCH (title, cached_tag_list) AGAINST ('phrase') ORDER BY score DESC; ...