FAQ Database Discussion Community


calculate error rate by category

r,level,scoring,tapply
I want to calculate the error rate by interval when 0 ist good and 1 is bad and I have a sample of 100 observation as levels divided in intervals as follows: X <- 10; q<-sample(c(0,1), replace=TRUE, size=X) l <- sample(c(1:100),replace=T,size=10) bornes<-seq(min(l),max(l),5) v <- cut(l,breaks=bornes,include.lowest=T) table(v) How can I get...

Corona : score keep running/ save it and show it after

corona,scoring
My score doesn't stop when my main object hits an obstacle (keeps running on the storyboard restart and start screen). I want it to stop and be able to save it and show it to the gamer next time (even share it on facebook if it's possible ). an image...

Elasticsearch: Having document score equal number of hits in field

elasticsearch,scoring
Using elasticsearch, I'm searching through an index on a field that typically has a large amount of text and I simply want to know the number of times the query was matched per document. Anyone know of a good way to do this? I'd like to do it through the...

LibGDX - Rendering an Angry Birds style animated score counter

libgdx,level,scoring
My game has an end of level screen, on which I wish to display an animated player score. If you have seen the one in Angry birds and many other games, the score text starts at "000000" and increments rapidly until it reachs the actual score the player achieved. I...

Elasticsearch Function Scoring based on max score within array / nested

elasticsearch,scoring
I have a field within my document, which stores an array of Integers. Java Class: public class Clazz { public List<Foo> foo; public static Foo { public Integer bar; public Integer baz; } } Mapping: "properties" : { "foo" : { "properties" : { "bar" : { "type" : "integer"...