Displaying 20 results from an estimated 23500 matches for "count".
2011 Jul 25
1
Problem with random number simulation
...why it may be
doing this
A few points of clarification: After each round, an uneven coin (90/10
probability) is flipped to see if the game continues (hence the while loop).
And every 10 hands, the noncomputer player changes strategy (hence the
if...modulus 20 statement)
Thanks
lambda=0.8
game=1
count=0
a=0.1
b=0.7
x=numeric()
y=numeric()
xval=x
yval=y
while(game==1)
{
count=count+1
x[count]=runif(1,0,1)
y[count]=runif(1,0,1)
if ((count%%20)<10)
{
if (x[count] > 0.15 & x[count]< 0.65)
{
i...
2003 Feb 06
4
Lost writes upon disk power failure
Hi,
I'm encountering a strange situation.
I'm writing to an ext3 filesystem mounted like this:
/dev/scsi/host2/bus0/target0/lun0/part3 on /tmp/volumes/md0 type ext3 (rw,noatime,data=ordered)
with the physical device being a FC-connected RAID (IBM DF4000)
no software raid personality is used
I'm using 2...
2010 Jul 05
0
Left 4 Dead 2 Dropping Audio Bug/Issue
...ing Steam and then playing L4D2:
Code:
fixme:d3d:IWineD3DOcclusionQueryImpl_GetData 0x20295e88 Wrong thread, returning 1.
fixme:d3d:IWineD3DOcclusionQueryImpl_GetData 0x202969a8 Wrong thread, returning 1.
fixme:d3d:IWineD3DOcclusionQueryImpl_GetData 0x16dcb7c0 Wrong thread, returning 1.
Reference Count for Material vgui_white (1) != 0
Reference Count for Material __background (1) != 0
Reference Count for Material __loading (1) != 0
Reference Count for Material __particlesdepthwrite (1) != 0
Reference Count for Material __particlesdepthwrite (1) != 0
Reference Count for Material __fontpage (1) !=...
2005 Jul 08
2
Accidentally issued "mkswap" on ext3 fs -- recovery possible?
...g':
--8<--
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
hdb1.img was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong for group #0 (24043, counted=0).
Fix? no
Free blocks count wrong for group #1 (32250, counted=0).
Fix? no
Free blocks count wrong for group #2 (32253, counted=0).
Fix? no
Free blocks count wrong for group #3 (32250, counted=158)...
2008 Jul 14
0
Problem with vampire: bloodlines
...pes are bound to the same texture image unit. \n"
fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #127: "Fragment shader(s) linked, vertex shader(s) linked. \n Validation failed - samplers of different types are bound to the same texture image unit. \n"
Reference Count for Material ___error (132) != 0
Reference Count for Material debug/debugmrmnormals (1) != 0
Reference Count for Material hud/new_ui/firstbarframe (1) != 0
Reference Count for Material hud/new_ui/firstbarlace (1) != 0
Reference Count for Material hud/new_ui/firstbarblackfill (1) != 0
Reference Coun...
2006 Apr 04
5
How to implement tag clouds using plugin?
The code on
http://blog.craz8.com/articles/2005/10/28/acts_as_taggable-is-a-cool-piece-of-code
is based on the acts_as_taggable gem,anybody has done that using the
acts_as_taggable plugin?thanks!
btw:the code above uses the tag_count method,which is defined in the
gem:
def tags_count(options = {})
options = {:order => ''count DESC''}.merge(options)
o, t, o_pk, o_fk, t_pk, t_fk = table_name,
tag_model.table_name, primary_key, taggable_foreign_key,
tag_model.primary_key, tag_fore...
2019 May 13
3
[nbdkit PATCH v2 0/2] Bounce buffer cleanups
Based on Rich's review of my v1 that touched only cache.c, I have now
tried to bring all three filters with alignment rounding in line with
one another.
There is definitely room for future improvements once we teach nbdkit
to let filters and plugins advertise block sizes, but I'm hoping to
get NBD_CMD_CACHE implemented first.
Eric Blake (2):
blocksize: Process requests in linear order
2017 Dec 13
5
RFC: Synthetic function entry counts
Functions in LLVM IR have a function_entry_count metadata that is attached
in PGO compilation. By using the entry count together with the block
frequency info, the compiler computes the profile count of call
instructions based on which the hotness/coldness of callsites can be
determined. Experiments have shown that using a higher threshold for ho...
2008 May 20
2
hist clarification
Can someone help me with a misunderstanding I'm having with hist? I
expected, from the example below, that the number of bins would always be 10
and the length of the counts array the same. According to the help section
'breaks' can be a integer indicating the number of bins. From the example
below, the number of bins (length of the counts array) varies. Am I wrong in
expecting the same number of bins every time from my hist() call (am I doing
something wrong)...
2004 Jun 24
0
help:about ext3
...stalled a SCSI RAID Card),and there are always some problems and them
the system is dead.
is anyone can help me about it?
Thanks
Crist
Below is the error log:
Jun 11 22:19:03 mail1 kernel: EXT3-fs error (device sd(8,18)):
ext3_free_blocks: Freeing blocks not in datazone - block = 1382828372,
count = 1
Jun 11 22:19:03 mail1 kernel: EXT3-fs error (device sd(8,18)):
ext3_free_blocks: Freeing blocks not in datazone - block = 1481734211,
count = 1
Jun 11 22:19:03 mail1 kernel: EXT3-fs error (device sd(8,18)):
ext3_free_blocks: Freeing blocks not in datazone - block = 1364473155,
count = 1
Jun...
2020 Feb 11
0
vhost changes (batched) in linux-next after 12/13 trigger random crashes in KVM guests after reboot
...[vq->first_desc=34]
[ 44.331406] [vq=00000000abd097cd][vq->ndescs=65][vq->first_desc=35]
[ 44.331407] [vq=00000000abd097cd][vq->ndescs=65][vq->first_desc=36]
[ 44.331408] [vq=00000000abd097cd][vq->ndescs=65][vq->first_desc=37]
[ 44.331410] [vq=00000000abd097cd][start=0][count=37]
[ 44.348284] [vq=000000008be108ff][vq->ndescs=1]
[ 44.348287] [vq=000000008be108ff][vq->ndescs=1][vq->first_desc=1]
[ 44.348290] [vq=000000008be108ff][vq->ndescs=0]
[ 44.348297] [vq=000000008be108ff][start=0][count=1]
[ 44.362505] [vq=000000008be108ff][vq->ndescs=1]
[...
2008 Mar 13
3
fast way to compare two matrices of combinations
..."match" and
"%in%", but can't get my mind around it.
Below is my code. sig.tf.pairs is the list. Suggestions?
Mark
############################################################
M <- 3 # 3 for triplets, etc.
##########################################################
# count all triplets
all.triplets <- NULL
all.count.vec <- NULL
for (i in 1:length(sig.tf.pairs)){
if (length(sig.tf.pairs[[i]] >= M)){
triplets <- combn(sig.tf.pairs[[i]], M, simplify = TRUE)
for (j in 1:ncol(triplets)){
o <- order(triplets[,j])
triplets[,j] <-...
2013 Apr 03
5
Can package plyr also calculate the mode?
I am trying to replicate the SAS proc univariate in R. I got most of the
stats I needed for a by grouping in a data frame using:
all1 <- ddply(all,"ACT_NAME", summarise, mean=mean(COUNTS), sd=sd(COUNTS),
q25=quantile(COUNTS,.25),median=quantile(COUNTS,.50),
q75=quantile(COUNTS,.75),
q90=quantile(COUNTS,.90), q95=quantile(COUNTS,.95),
q99=quantile(COUNTS,.99) )
So I got the mean, median std dev, quantiles etc.
IS there any way I can add the mode to the mix...
2004 Mar 02
2
Problem with Integrate
...a way of modelling species abundances:
N ~ Pois(lam)
log(lam) ~ N(mu, sigma2)
The number of individuals are Poisson distributed with an abundance
drawn from a log-normal distrbution.
To fit this to data, I need to integrate out lam. In principle, I can
do it this way:
PLN1 <- function(lam, Count, mu, sigma2) {
dpois(Count, exp(lam), log=F)*dnorm(LL, mu, sqrt(sigma2))
}
and integrate between -Inf and Inf. For example, with mu=2, and
sigma2=2.8 (which are roughly right for the data), and Count=73, I get this:
> integrate(PLN1, -10, 10, Count=73, mu=2, sigma2=2.8)
0.001289726 with...
2017 Apr 13
3
Question on induction variable simplification pass
Hi all,
It looks like the induction variable simplification pass prefers doing a zero-extension to compute the wider trip count of loops when extending the IV. This can sometimes result in loss of information making ScalarEvolution's analysis conservative which can lead to missed performance opportunities.
For example, consider this loopnest-
int i, j;
for(i=0; i< 40; i++)
for(j=0; j< i-1; j++)
A[i+j]...
2006 Apr 11
0
Serial ATA Errors
...to 2 GB (DDR 400),
perhaps a cable got slightly loose. I'm pretty certain the hard drives are
good since the server ran fine prior to the memory upgrade.
What do the errors below mean? Should I be worried?
Apr 11 17:17:12 freebsd kernel: ad4: ata_command: addr=c000, command=c8,
lba=432167635, count=4, feature=0
Apr 11 17:17:12 freebsd kernel: ad4: ata_command: addr=c000, command=ca,
lba=13040031, count=32, feature=0
Apr 11 17:17:12 freebsd kernel: ad4: ata_command: addr=c000, command=ca,
lba=17221247, count=32, feature=0
Apr 11 17:17:12 freebsd kernel: ad4: ata_command: addr=c000, command=ca,...
2007 Sep 12
2
cc5 where to start debugging
Hi,
I've been running close combat 5 with wine for a while now but lately
I've been getting a error with the program crashing.
The following output comes in the terminal:
----------------------------------------------------------------------------------------------------------------------------------------------------
wine: Unhandled page fault on write access to 0x0375fffe at
2005 Aug 19
3
accessing DB result in template
hello,
I have the following in my controller
def totalmembers
@total = User.find_by_sql "SELECT COUNT(*) as count FROM users "
end
now inside my template how do i access the field "count" from the
query so i can print out the number of members ?
I tried everythign like <%= @total.count %> but nothing works.
thanks
adam
2017 Dec 15
2
RFC: Synthetic function entry counts
On Fri, Dec 15, 2017 at 12:22 AM, Sean Silva <chisophugis at gmail.com> wrote:
> IIUC, this proposal is just saying that we should infer a static profile
> for entry counts just like we do for branch probabilities. In the case of
> entry counts, we do not hide that information behind an analysis like BPI,
> so currently just annotating synthetic PGO entry counts is a simple
> solution that piggybacks on the PGO mechanism and Just Works.
>
> If that is...
2019 May 13
0
[nbdkit PATCH v2 2/2] cache, cow: Reduce use of bounce-buffer
...data,
uint32_t flags, int *err)
{
CLEANUP_FREE uint8_t *block = NULL;
+ uint64_t blknum, blkoffs;
+ int r;
assert (!flags);
- block = malloc (blksize);
- if (block == NULL) {
- *err = errno;
- nbdkit_error ("malloc: %m");
- return -1;
+ if (!IS_ALIGNED (count | offset, blksize)) {
+ block = malloc (blksize);
+ if (block == NULL) {
+ *err = errno;
+ nbdkit_error ("malloc: %m");
+ return -1;
+ }
}
+ blknum = offset / blksize; /* block number */
+ blkoffs = offset % blksize; /* offset within the block */
+
+ /* Una...