Displaying 11 results from an estimated 11 matches for "jstart".
Did you mean:
start
2017 Oct 09
1
Using response variable in interaction as explanatory variable in glm crashes R
...from the RHS when building
the model matrix and it does work fine in the integer case.
Part of the culprit code may be this (from line 717),
with the isLogical(.) which in our case, shifts the pointer by
1 in the call to firstfactor() :
int adj = isLogical(var_i)?1:0;
// avoid overflow of jstart * nn PR#15578
firstfactor(&rx[jstart * nn], n, jnext - jstart,
REAL(contrast), nrows(contrast),
ncols(contrast), INTEGER(var_i)+adj);
then in firstfactor(), we see the segfault (when running R with
'-d gdb') :
> model.matrix(dob_mon ~ dob_day*dob_mon, data =...
2009 Mar 17
2
Difficulty Replacing a Row of a Data Frame
I have the following data frames, avGain and retGain. They have the same
dimensions.
The following line of code replaces row j of avGain as desired:
avGain[j, ] <- mean( retGain[jStart:j, ] )
However, the following line does not work:
avGain[j, ] <- ( avGain[j-1, ] * ( DAYS - 1 ) + retGain[j, ] ) / DAYS
If I do the following, and test to see if a or b are data frames.
a <- mean( retGain[jStart:j, ] )
b <- ( avGain[j-1, ] * ( DAYS - 1 ) + retGain[j, ] ) /...
2017 Jun 21
1
fitting cosine curve
...tart=list(A=coef(linFit)[1],B=coef(linFit)[2],C=0,omega=.04), trace=TRUE)
co <- coef(fullFit)
fit <- function(x, a, b, c, d) {a*cos(b*x+c)+d}
plot(x=t, y=y)
curve(fit(x, a=co['A'], b=co['omega'], c=co['C'],d=co['B']), add=TRUE
,lwd=2, col="steelblue")
jstart <- list(A=20, B=100, C=0, omega=0.01)
jfit <- nlxb(y ~ A*cos(omega*t+C) + B, data=lidata,
start=jstart, trace=TRUE)
co <- coef(jfit)
fit <- function(x, a, b, c, d) {a*cos(b*x+c)+d}
plot(x=t, y=y)
curve(fit(x, a=co['A'], b=co['omega'], c=co['C'],d=co['...
2017 Oct 06
2
Using response variable in interaction as explanatory variable in glm crashes R
The following code crashes R (I know I shouldn't try to estimate such a
model; this was a bug in some code of mine). I also tried with R-devel;
same result.
tab <- structure(list(dob_day = c(FALSE, FALSE, FALSE, FALSE, TRUE,
TRUE, TRUE, TRUE), dob_mon = c(FALSE, FALSE, TRUE, TRUE, FALSE,
FALSE, TRUE, TRUE), dob_year = c(FALSE, TRUE, FALSE, TRUE, FALSE,
TRUE, FALSE, TRUE), n =
2009 Oct 26
1
[LLVMdev] RegAllocSimple doesn't work
...[*i + 1]))
{
for (k = src[*i-1]+1; k<=src[*i+1]; k++)
{
junk = addstr(k, dest, j, maxset);
}
*i = *i + 1;
}
else
junk = addstr(DASH, dest, j, maxset);
(*i) = (*i) + 1;
}
}
bool
getccl(arg, i, pat, j)
char *arg;
int *i;
char *pat;
int *j;
{
int jstart;
bool junk;
*i = *i + 1;
if (arg[*i] == NEGATE) {
junk = addstr(NCCL, pat, j, MAXPAT);
*i = *i + 1;
} else
junk = addstr(CCL, pat, j, MAXPAT);
jstart = *j;
junk = addstr(0, pat, j, MAXPAT);
dodash(CCLEND, arg, i, pat, j, MAXPAT);
pat[jstart] = *j - jstart - 1;...
2017 Jun 21
1
fitting cosine curve
If you know the period and want to fit phase and amplitude, this is
equivalent to fitting a * sin + b * cos
> >>> > I don't know how to set the approximate starting values.
I'm not sure what you meant by that, but I suspect it's related to
phase and amplitude.
> >>> > Besides, does the method work for sine curve as well?
sin is the same as cos with
2009 Oct 22
0
[LLVMdev] request for help writing a register allocator
Hi Susan,
> But this doesn't seem to be happening; the stores to memory are there but
> the loads are not.
>
> Any ideas what's going wrong?
Are you using VirtRegMap::addSpillPoint and VirtRegMap::addRestorePoint ? If
not you may need to add calls to them to let the rewriter know where to
insert the loads/stores.
> If not, any advice on how to generate the loads
2017 Jun 21
0
fitting cosine curve
I'm trying the different parameters, but don't know what the error is:
Error in nlsModel(formula, mf, start, wts) :
singular gradient matrix at initial parameter estimates
Thanks for any suggestions.
On Tue, Jun 20, 2017 at 7:37 PM, Don Cohen <don-r-help at isis.cs3-inc.com>
wrote:
>
> If you know the period and want to fit phase and amplitude, this is
> equivalent to
2009 Oct 22
4
[LLVMdev] request for help writing a register allocator
I found the problem! My generated code is spilling correctly but is not
reloading at all. For example, if the original code has the equivalent of
this (where %1024 is a virtual reg):
%1024 = xxx
...
yyy = %1024
and I find no physical register for %1024, then I assign it to physical
register %edi and to a stackslot. That creates code like this:
%edi = xxx
store from %edi to the
2004 Jul 07
0
jailutils security issue, and possible issue with 'jail'
...big issue (unless I'm missing something), simply one of
leaking the host environment into the jail.
This might be used legitimately in certain cases, but in most cases it's
probably a good idea to clear out the environment before executing the
jail() or jail_attach() syscalls.
The 'jstart' utility included in jailutils does this and it would
probably be a good addition to 'jexec' and/or 'jail'.
2006 Nov 17
1
gjournal on 6.x wont build
Hi all,
I was intending on trying out gjournal on a new disk i've added in my
desktop. I had a look to see what the most recent patch provided by
Pawel and found
http://people.freebsd.org/~pjd/patches/gjournal6_20061024.patch
I created the directories as per Pawel's original post
(http://lists.freebsd.org/pipermail/freebsd-fs/2006-June/001962.html)
and the patch succeeded with no failed