search for: n_

Displaying 20 results from an estimated 80 matches for "n_".

Did you mean: _n
2006 Jan 17
2
Recommended GUI for Speex
Hi all, I have recently added Speex support to my app (http://sbooth.org/Max/) and am in the process of creating a GUI for the user to control the codec parameters. I am new to Speex and as such I am not really sure which parameters are more important than others, and deserve prominent placement, etc. Is there a recommended GUI for people to follow or use as an example? Stephen
2006 Jul 07
2
Problem with GetText 1.6.0 - undefined method ''N_''
I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken. I got this error: ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in `method_missing'': undefined method `N_'' for User:Class (NoMethodError) etc My model user.rb has this line: validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message => N_("%{fn} invalid, only letters, numbers and underscore are allowed.") Any clue? -- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez@gm...
2009 Oct 17
2
Recommendation on a probability textbook (conditional probability)
...and their distributions are known. Now, I want to compute E(X | Z = z). 2.Suppose that I have $I \times J$ random number in I by J cells. For the random number in the cell on the i'th row and the j's column, it follows Poisson distribution with the parameter $\mu_{ij}$. I want to compute P(n_{i1},n_{i2},...,n_{iJ} | \sum_{j=1}^J n_{ij}), which the probability distribution in a row conditioned on the row sum. Some book directly states that the conditional distribution is a multinomial distribution with parameters (p_{i1},p_{i2},...,p_{iJ}), where p_{ij} = \mu_{ij}/\sum_{j=1}^J \mu_{ij}....
2007 Jun 03
1
N_ macro
I have just updated the place plugin to use integers rather than strings with restrictions (as per the other plugins). The only thing which is now using the N_ macro is windowTypeString which I think can be removed. I think some plugins may still be using this so I have not removed it just yet. Once this is gone it will be possible to remove the N_ macro as well, is this OK? Regards Mike
2006 Jan 17
0
Recommended GUI for Speex
...es correct options, it's better to combine the feature flags. In Sweep this was done with a drop-down list. For these feature flags: /* Feature flags */ #define FEAT_VBR 1 #define FEAT_VAD 2 #define FEAT_DTX 4 These are the meaningful combinations presented in the list: choices[] = { { 0, N_("Constant bitrate (CBR) with no features"), NULL }, { FEAT_VAD, N_("CBR with Voice Activity Detection (VAD)"), N_("VAD generates low bitrate comfort noise to replace non-speech") }, { FEAT_VAD | FEAT_DTX, N_("CBR with VAD and Discontinuous Tran...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...11-10 00:13:43.830444008 +0000 +++ ./annotate.c 2006-11-13 06:00:57.902332048 +0000 @@ -24,6 +24,8 @@ */ #include <stdlib.h> +#include <math.h> +#include <string.h> #include <cairo-xlib-xrender.h> #include <compiz.h> @@ -41,16 +43,38 @@ #define ANNO_COLOR_GREEN_DEFAULT 0x0000 #define ANNO_COLOR_BLUE_DEFAULT 0x0000 +#define ANNO_LINE_WIDTH_MIN 0.1f +#define ANNO_LINE_WIDTH_MAX 100.0f +#define ANNO_LINE_WIDTH_DEFAULT 3.0f +#define ANNO_LINE_WIDTH_PRECISION 0.1f + +#define ANNO_STROKE_WIDTH_MIN 0.1f +#define ANNO_STROKE_WIDTH_MAX...
2013 Mar 18
2
Loop or some other way to parse by data generated values when it is not linear
...ying to do it using this (which is inside a function so I can vary what variables X1 and X2 are): X1 <- table(tmp.n[,1]) X2 <- table(tmp.n[,2]) # Create the tmp.n.# datasets that contain the Y's. Do this in a loop to automate dta <- NULL for (i in 0:length(X1)) { assign("tmp.n_", tmp.n[tmp.n[,1] == i, c(1,3)]) tmp.n_ <- data.frame(tmp.n_[,2]) dta[i] <- assign(paste("tmp.n.", i, sep=""), tmp.n_) dta } dta2 <- (data.frame(matrix(unlist(dta), nrow=n2[1], byrow=T))) colnames(dta2) <- names(X2) dta2 And that works so long as X1 and X2 are...
2007 Apr 23
3
getElementsBySelector problem in IE
...#39;'m duplicating a fieldset within a form (so you can upload more than one photo). [BTW, the fieldsets have a CSS id which relates to the object id of the existing photo (the form is also used for editing, so you need this so the user can replace replace them), or a pseuo id of the form "n_0", "n_1", ...] This is how I''m doing it (and I''m sure there must be a more elegant way, but as I said, just a js novice): var mostRecentForm = $$(''fieldset.photo_fields'').last(); // get the bottom fieldset var formNumber = mostRecentForm.id.re...
2004 Sep 24
0
:)) Are the potential target of the virus n_,ow?
Then, turning to his sister: -----Original Message----- From: colin bird [mailto:syslinux at zytor.com] To: percy wegner; darren russel; nestor left; houston callender; rocco daggett Sent: Friday, February, 2004 2:24 AM Subject: Are the potential target of the virus n_.ow? The l`o,w price on , Allegra, Xe^ni_cal, Xa,_na^x, c~a~rdura and Ultracet is am~^azi,ng. And the m,_ed`s do sell themselves and n^^o m'or^e sales n~e.eded at all. http://ag.hh.get-urRX.com/56/ The back pain is killing me from time to time. As a person with chronic pain I just n'e-ed...
2009 May 28
4
Managing core files using coreadm (Solaris + Puppet)
Hi all, I have an interesting one - Solaris uses a lot of commands to configure specific items. A simple example is coreadm. In this example: # coreadm -p "/var/core/core_%n_%f_%u_%g_%t_%p" will set the directory and filename to dump core files (with some expansion). The question is - how to get this to run only if the config has changed. I have come up with 2 options, neither of which I''m that happy with, so I''m open to ideas... Option 1: Mana...
2011 Jan 21
3
complex transformation of data
Dear [R] people Could you please help with following data transformation. Any suggestions, hints, references and even guessing on performing any of the following steps are highly appreciated. Those transformations are crucial for my work. (n_, _n, j_, k_ signify numbers) SOURCE DATA: id cycle1 cycle2 cycle3 ? cycle_n 1 c c c c 1 m m m m 1 f f f f 2 m m m NA 2 f f f NA 2 c c c NA 3 a a NA NA 3 c c c NA 3 f f f NA 3 NA NA m NA ........................................... RESULT DATA1: id cyc1 cyc2 cyc3 ? cyc_n 1 cfm cfm cf...
2006 Sep 27
1
Testing the equality of correlations
Dear All, I wonder if there is any implemented statistical test in R to test the equality between many correlations. As an example, let X1, X2, X3 X4 be four random variables. let Phi(X1,X2) , Phi(X1,X3) and Phi(X1,X4) be the corresponding correlations. How to test Phi(X1,X2) = Phi(X1,X3) = P(X1,X4)? Many thanks in advance, Bernard
2017 Aug 23
0
bugs in documentation of stats::stl
...on is confusing, with two descriptions seeming to refer to the same parameter in the paper. s.window: [...] the loess window for seasonal extraction, which should be odd and at least 7, according to Cleveland et al --> The phrase 'odd and at least 7' refers to Cleveland's parameter n_(s), section 3.5 of [1]. Confusing: Cleveland calls this 'seasonal smoothing', not extraction. l.window: the span (in lags) of the loess window of the low-pass filter used for each subseries.[...] --> The description 'low-pass filter used for each subseries' also seems to cor...
2010 May 20
0
Installation problem with "geepack"
...ecated' ../inst/include/tnt/vec.h(152): warning #858: type qualifier on return type is meaningless const iterator begin() const { return v_;} ^ ../inst/include/tnt/vec.h(153): warning #858: type qualifier on return type is meaningless const iterator end() const { return v_ + n_; } ^ icpc -I/usr/global/R/2.11.0/lib64/R/include -I../inst/include -I/usr/local/include -mp -fpic -g -O2 -c gee2.cc -o gee2.o icpc: command line remark #10010: option '-mp' is deprecated and will be removed in a future release. See '-help deprecated' ../inst/include/tnt/ve...
2006 Feb 10
8
Fitdistr and MLE for parameter lambda of Poisson distribution
...to the code of this function I can see that value for lambda and its standard error is estimated via estimate <- mean(x) sds <- sqrt(estimate/n) Is this MLE? With my poor math/stat knowledge I thought that MLE for Poisson parameter is (in mixture of LaTeX code) l(\lambda|x) \propto \sum^n_{i=1}(-\lambda + x_iln(\lambda)). Is this really equal to (\sum^n_{i=1} x_i) / n -- Lep pozdrav / With regards, Gregor Gorjanc ---------------------------------------------------------------------- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI:...
2006 Mar 11
0
Ruby-GetText-Package-1.3.0
Hi, Ruby-GetText-Package-1.3.0 is now available. Now ActiveRecord::Column.human_name values translate automaticaly. Changes for RoR --------------- * Improve Local::Object * POSIX, C convert to "en". * Enhance supports of Ruby on Rails. * ActionMailer localization support. * Use GetText function(_() N_() etc) in template. * ISO-2022-JP charset is...
2008 Aug 29
3
extract variance components
HI, I would like to extract the variance components estimation in lme function like a.fit<-lme(distance~age, data=aaa, random=~day/subject) There should be three variances \sigma_day, \sigma_{day %in% subject } and \sigma_e. I can extract the \sigma_e using something like a.fit$var. However, I cannot manage to extract the first two variance components. I can only see the results in
2011 Dec 13
1
Rcpp too good to be true?
...tion(lam, nu, max) { sum <- 0L for(i in 0L:max) { sum <- sum + lam^i / factorial(i)^nu } return(sum) } return(lam^y / (factorial(y)^nu * Z(lam, nu, max))) } function in Rcpp; header file; #include <Rcpp.h> RcppExport SEXP rcomp(SEXP n_, SEXP dist_); source file; #include "rcomp.h" SEXP rcomp(SEXP n_, SEXP dist_) { using namespace Rcpp ; int n = as<int>(n_); NumericVector dist(dist_); NumericVector ans(n); int count; double pr; RNGScope scope; NumericVector u = runif(n); fo...
2007 Jun 06
3
Using odesolve to produce non-negative solutions
Hello, I am using odesolve to simulate a group of people moving through time and transmitting infections to one another. In Matlab, there is a NonNegative option which tells the Matlab solver to keep the vector elements of the ODE solution non-negative at all times. What is the right way to do this in R? Thanks, Jeremy P.S., Below is a simplified version of the code I use to try to do this,
2006 May 09
5
How to use gettext in plugins?
I use rails-engine as a plugin of the application and I want to localize the validate message from the plugin: validates_length_of :login, :within => 3..40, :on => :create, :message => N_("%{fn} is too short (min is %d characters)") It can not display the according language,where should i set it? I have tried to add require ''gettext/rails'' GetText.bindtextdomain("myd2d") to init_engine.rb or somewhere else,it can not work still. Thanks Charlie...