Displaying 5 results from an estimated 5 matches for "phit".
Did you mean:
hit
2009 Apr 09
1
.Call()
...1, function(x){
(mean(x[cols]) -
mean(x[-cols]))/sd(x)})
ranklist <- ranklist[order(ranklist[,1]),]
if(ranklist[1,2]==1) score[i] <- 1/Ns
if(ranklist[1,2]==0) score[i] <- -(1/(N-Ns))
for(j in 2:nrow(ranklist)){
phit <- sum(rep(1/Ns, sum(ranklist[1:j,2]==1)))
pmiss <- sum(rep(1/(N-Ns), sum(ranklist[1:j,2]==0)))
if((phit-pmiss)>score[i]) score[i] <- phit - pmiss
}
}
I tried a little bit, but not enough knowledge in C.
#include <stdio.h>
#include <R.h>
#include <Rdefine...
2011 Oct 24
2
C function is wrong under Windows 7
...msum(double *x, int len)
{
int i;
for (i = 1; i < len; ++i) {
*(x + i) = *(x + i) + *(x + i -1);
}
}
double getNr(double *fchr, int *sign, int signLen)
{
int i;
double nr;
nr = 0.0;
for (i = 0; i < signLen; ++i) {
nr = absolute(fchr[sign[i] -1]) + nr;
}
return nr;
}
void getPhit(double *fchr, int *sign, int signLen, double nr, double *phit)
{
int i;
for (i = 0; i < signLen; ++i) {
*(phit + sign[i]-1) = absolute(*(fchr + sign[i]-1)) / nr;
}
}
void getPmiss(int *sign, int fchrLen, int signLen, double *pmiss)
{
int i;
double tmp = 1.0 / (fchrLen-signLen);
for (...
1998 Feb 27
1
R-beta: is there a way to get rid of loop?
...Carlo simulation. [Edwards gives no ref on the sampling distrib of G_I]
The number of signal trials is binomial random
variable with p=.5, so it is simulated that way. This is fine, I can get
a vector of 2000 ns numbers that way. However, for each ns I want an
associated binomial variate with p=phit. Is there a better way to do this
than by looping?
Gsens.ci.mc<-function(nhit,nmiss,nfa,ncr)
{
#monte carlo simulated 95% CI
nsignal<-nhit+nmiss
nnoise<-nfa+ncr
phit<-nhit/nsignal
pfa<-nfa/nnoise
ns<-rbinom(2000,nsignal,.5)
nn<-nsignal+nnoise-ns
nh<-NULL
nf<-NULL
for(i...
2010 Mar 02
9
Filebench Performance is weird
...t for the same workload is disappointing , notice that the
throughput dropped from 1307.7 mb/s to 2.7 mb/s !!!!!!!!!!!!!!!!!!!!!!1
My ARC_max is 3G
Here is a snapshot of my arcstat output in case of high throughput ---
notice the 100% hits ratio
arcsz,read,hits,Hit%,miss,miss%,dhit,dh%,dmis,dm%,phit,ph%,pmis,pm%,mhit,mh%,mmis,mm%,mfug,mrug,
1G, 31M, 31M, 99,111K, 0, 28M, 99, 99K, 0, 2M, 99, 12K, 0, 1M,
98, 13K, 1, 43, 43,
1G,147K,145K, 99, 1K, 0, 14K, 99, 2, 0,131K, 99, 1K, 0, 0,
0, 0, 0, 0, 0,
1G,166K,166K, 100, 0, 0, 37K,100, 0, 0,128K,100, 0,...
2011 Apr 25
3
arcstat updates
...s percentage
eskip : evict_skip per second
l2size : L2ARC size
l2hits : L2ARC hits per second
hit% : ARC hit percentage
miss% : ARC miss percentage
dh% : Demand data hit percentage
mread : Metadata accesses per second
phit : Prefetch hits per second
Some questions for the community:
1. Should there be flag compatibility with vmstat, iostat, mpstat, and friends?
2. What is missing?
3. Is it ok if the man page explains the meanings of each field, even though it
might be many pages long?
4. Is there a common subset...