search for: p_j

Displaying 11 results from an estimated 11 matches for "p_j".

Did you mean: p_0
2011 Apr 20
4
[LLVMdev] GEP vs IntToPtr/PtrToInt
...ndirectly) to the computation of the pointer's value." Suppose an int value 'i' is computed by a lot of int variables that are converted from ptr (p1,p2...pn) by ptrtoint, then if we inttoptr i to a point p, how should I decide which pointer value the 'p' forms? If those p_j are ptrtoint to a i_j, and the computation for i is i = i_0 + i_1 + ... i_n, does it mean we can take either p_j as a base pointer, and other int variables its offset, say we take p_2 as the base pointer, and the p from i points to p_2 + (i_0 + i_1 + i_3 + .. i_n) ? So in the transforma...
2013 Nov 19
1
Generación de números aleatorios. Mixtura k-puntos
Saludo cordial para cada uno. Les pido ayuda para generar números aleatorios de una mixtura k-puntos. Sabemos que la función de distribución F es una mixtura k-puntos si es de la forma F(x) = p_1 F_1(x) + p_2 F_2(x) + … + p_k F_k(x), donde F_j es una función de distribución de probabilidad, p_j > 0 y suma(p_j) = 1, para j = 1, 2, …, k. En mi caso particular F es la suavización de la función de probabilidad discreta {p_j} mediante kernel gamma. En el siguiente código F es la función Keg: # Distribución empírica suavizada # Valores que toma la variable y su probabilidad puntual...
2011 Apr 20
0
[LLVMdev] GEP vs IntToPtr/PtrToInt
...the > pointer's value." > > Suppose an int value 'i' is computed by a lot of int variables that > are converted from ptr (p1,p2...pn) by ptrtoint, then if we inttoptr i > to a point p, how should I decide which pointer value the 'p' forms? > > If those p_j are ptrtoint to a i_j, and the computation for i is i = > i_0 + i_1 + ... i_n, does it mean > we can take either p_j as a base pointer, and other int variables > its offset, say we take p_2 as the base pointer, and the p from i > points to > p_2 + (i_0 + i_1 + i_3 + .. i_n...
2011 Apr 20
0
[LLVMdev] GEP vs IntToPtr/PtrToInt
...the > pointer's value." > > Suppose an int value 'i'  is computed by a lot of int variables that > are converted from ptr (p1,p2...pn) by ptrtoint, then if we inttoptr i > to a point p, how should I decide which pointer value the 'p' forms? > > If those p_j are ptrtoint to a i_j, and the computation for i is i = > i_0 + i_1 + ... i_n, does it mean >  we can take either p_j as a base pointer, and other int variables > its offset, say we take p_2 as the base pointer, and the p from i > points to >       p_2 + (i_0 + i_1 + i_3 + .. i_n) &g...
2011 Apr 20
2
[LLVMdev] GEP vs IntToPtr/PtrToInt
...alue." >> >> Suppose an int value 'i'  is computed by a lot of int variables that >> are converted from ptr (p1,p2...pn) by ptrtoint, then if we inttoptr i >> to a point p, how should I decide which pointer value the 'p' forms? >> >> If those p_j are ptrtoint to a i_j, and the computation for i is i = >> i_0 + i_1 + ... i_n, does it mean >>  we can take either p_j as a base pointer, and other int variables >> its offset, say we take p_2 as the base pointer, and the p from i >> points to >>       p_2 + (i_0 + i_...
2011 Apr 20
0
[LLVMdev] GEP vs IntToPtr/PtrToInt
...>>> Suppose an int value 'i'  is computed by a lot of int variables that >>> are converted from ptr (p1,p2...pn) by ptrtoint, then if we inttoptr i >>> to a point p, how should I decide which pointer value the 'p' forms? >>> >>> If those p_j are ptrtoint to a i_j, and the computation for i is i = >>> i_0 + i_1 + ... i_n, does it mean >>>  we can take either p_j as a base pointer, and other int variables >>> its offset, say we take p_2 as the base pointer, and the p from i >>> points to >>>  ...
2011 Apr 05
0
[LLVMdev] GEP vs IntToPtr/PtrToInt
On Mon, Apr 4, 2011 at 7:10 AM, John Criswell <criswell at illinois.edu> wrote: > On 4/4/2011 6:45 PM, Eli Friedman wrote: >> >> On Mon, Apr 4, 2011 at 5:02 PM, Arushi Aggarwal<arushi987 at gmail.com> >>  wrote: >>> >>>> Hi, >>>> Is it correct to convert, >>>>   %196 = load i32* %195, align 8                
2011 Apr 20
1
[LLVMdev] GEP vs IntToPtr/PtrToInt
...ppose an int value 'i'  is computed by a lot of int variables that >>>> are converted from ptr (p1,p2...pn) by ptrtoint, then if we inttoptr i >>>> to a point p, how should I decide which pointer value the 'p' forms? >>>> >>>> If those p_j are ptrtoint to a i_j, and the computation for i is i = >>>> i_0 + i_1 + ... i_n, does it mean >>>>  we can take either p_j as a base pointer, and other int variables >>>> its offset, say we take p_2 as the base pointer, and the p from i >>>> points t...
2011 Apr 04
2
[LLVMdev] GEP vs IntToPtr/PtrToInt
On 4/4/2011 6:45 PM, Eli Friedman wrote: > On Mon, Apr 4, 2011 at 5:02 PM, Arushi Aggarwal<arushi987 at gmail.com> wrote: >> >>> Hi, >>> Is it correct to convert, >>> %196 = load i32* %195, align 8 ;<i32> [#uses=1] >>> %197 = zext i32 %196 to i64 ;<i64> [#uses=1] >>> %198 =
2004 Nov 09
0
Is nesting {} inside \eqn OK?
...ed using \begingroup and \endgroup, and ran into problem with a later \eqn with nested braces. For reference, particularly in case I've missed something earlier, here is a fuller excerpt from the input file: -------------------------------------------- With \eqn{J} possible outcomes and \eqn{p_j}{p(j)} the probability of the \eqn{j}'th outcome, the formula is \deqn{\newcommand{\B}{{\bf \beta}}\newcommand{\X}{{\bf X}} p_j = \frac{e^{\X\B_j}}{\displaystyle\sum_{k=0}^J e^{\X\B_k}}.}{ p(j) = exp[X*b(j)]/sum{exp[X*b(k)], k=0 to J}.} \eqn{{\bf\beta}_j}{b(j)} is the vector of co...
2002 Jul 12
2
Crosstabs in R
Before I reinvent the wheel, I have need for a relatively straightforward crosstabulation (2 x n) function. I know that R has table(), ftable(), xtabs(), and summary(xtabs()), but none of these produce a fully "tricked" out cross-tabulation with marginal totals, expected cell frequencies, and an array of statistics about the contingency table. Is there a more complete (something