Displaying 20 results from an estimated 46 matches for "xw".
Did you mean:
wx
2009 Jul 23
1
dimension trouble for a matrix
...is=TRUE,sep="\t")
n1 <- nrow(x.df)
xy <- matrix(rep("",n1*3),nrow=n1,ncol=3)
cat("dim",dim(xy),"\n")
for(i in 1:n1) {
xz <- paste("globus-job-run ",x.df[i,2]," /bin/sh -c 'echo $OSG_APP'",
sep="")
xw <- system(xz,intern=TRUE)
if(length(xw)>0) {
xy[i,1:2] <- x.df[i,1:2]
print(xw)
cat(i,xy[i,],"\n")
cat(i,length(xw),dim(xw),"\n")
xy[i,3] <- xw
}
}
return(xy)
}
>
I have no idea what's wrong. This should run like clockwork. Any
help is much appreci...
2008 Feb 07
2
a kinder view of Type III SS
...ose
provided by anova(), being x, w|x, and z|x,w. None of these tests is more
or less valid or useful than any of the others. It depends on which
questions researchers want to ask of their data.
Things get more interesting when z represents the interaction between x and
w, such that z = x * w = xw. Fundamentally everything is the same in terms
of the above tests. However, one must be careful to understand what the
coefficient and test for x|w,xw and w|x,xw mean. That is, x|w,xw tests the
relationship between x and y when and only when w = 0. A very, very common
mistake, due to an overgen...
2006 Mar 15
1
(newbie) Weighted qqplot?
...ight the
points before comparing the distributions? I was thinking of somehow
creating multiple observations for each actual observation based on
weights and creating a new dataframe etc. -- but that seem excessive.
Surely there is a simpler way?
> x <- rnorm(100)
> y <- rnorm(10)
> xw <- rnorm(100) * 1.73 # The weights. These won't add up to 1 or N or anything because of missing values.
> yw <- rnorm(10) * 6.23 # The weights. These won't add up to 1 or to the same number as xw.
> # The question to answer is, how can I create a qq plot or cdf compare of x vs....
2008 Oct 30
1
package pls
Hi,
For the package "pls", I need to understand the algorithm for
"simpls.fit" for Partial Least Squares. I'm not sure if simpls.fit tries
to find the weight vectors (loadings) to maximize which of the two:
Cov(Xw, y) or maximize Cov^2(Xw,y)? Are these objective functions
equivalent? (in some texts, they use the first and in other texts, they
use the second obj. function.). I think the algorithm for simpls.fit is
using Cov(Xw,y).
Also, can you give me some references where they state the
equivalency...
2007 Jul 04
1
Calling C Code from R
...Statistician
NSW Department of Commerce
Sydney, Australia
testCX1.C
--------------
/*
*********************
testCX1.c
*********************
*/
#include <R.h>
#include <Rdefines.h>
#include <Rmath.h>
SEXP testC1(SEXP a)
{
int i, nr;
double *xa, *xw, tmp;
SEXP w;
PROTECT(a = coerceVector(a, REALSXP));
nr = length(a);
printf( "Length : %d \n", nr);
PROTECT(w = allocVector(REALSXP, 1));
xa = REAL(a);
xw = REAL(w);
tmp = 0.0;
for (i = 0; i < nr; i++)
{
tmp += xa[i];...
2017 Nov 24
2
number to volume weighted distribution
Hi Duncan
I tried Ecdf and/or wtd.quantile from Hmisc and it is working (probably).
Ecdf(x, q=.5)
Ecdf(x, weights=xw,col=2, add=T, q=.5)
wtd.quantile(x)
0% 25% 50% 75% 100%
10 10 10 100 300
wtd.quantile(x, weights=xw, type="i/n")
0% 25% 50% 75% 100%
10.0000 138.8667 192.5778 246.2889 300.0000
But could you please be more specific in this?
> But you seem to be...
2017 Nov 24
0
number to volume weighted distribution
...////////////////////////////////////////////////////////////////////////////////////
2017-11-24 14:30 GMT+01:00 PIKAL Petr <petr.pikal at precheza.cz>:
> Hi Duncan
>
> I tried Ecdf and/or wtd.quantile from Hmisc and it is working (probably).
> Ecdf(x, q=.5)
> Ecdf(x, weights=xw,col=2, add=T, q=.5)
> wtd.quantile(x)
> 0% 25% 50% 75% 100%
> 10 10 10 100 300
> wtd.quantile(x, weights=xw, type="i/n")
> 0% 25% 50% 75% 100%
> 10.0000 138.8667 192.5778 246.2889 300.0000
>
> But could you please be more spec...
2017 Nov 24
0
number to volume weighted distribution
On 24/11/2017 6:27 AM, PIKAL Petr wrote:
> Dear all
>
> Strictly speaking it is not R question but as you are the most capable persons I know I give it a try.
>
> I am strugling with recalculation of number weighted to volume weighted distribution.
>
> Suppose I have objects (cubes) with size
>
> x<- c(rep(10,20), rep(100, 10), rep(300,5))
> I can get
>
2006 May 09
3
What does this mean?
def cas
casses = [@cas.ss,@cas.s,@cas.xl,@cas.l,@cas.m,@cas.w,@cas.xw]
casses.each do |cas|
if cas >= 10
@user.send(cas) -= 1
@user.save!
end
end
my error:
app/controllers/battle_controller.rb:383: parse error, unexpected
tOP_ASGN, expecting kEND
@user.send(cas) -= 1
^
app/controllers/battle_controller.rb:388: parse error, unexpected $,
expect...
2017 Nov 24
2
number to volume weighted distribution
Dear all
Strictly speaking it is not R question but as you are the most capable persons I know I give it a try.
I am strugling with recalculation of number weighted to volume weighted distribution.
Suppose I have objects (cubes) with size
x<- c(rep(10,20), rep(100, 10), rep(300,5))
I can get
plot(ecdf(x))
or the number weighted average
mean(x)
[1] 77.14286
or volume weighted average
2011 Sep 01
0
qqplot for count data
...; Folks,
> I am documenting what I finally did, for the next person who comes along...
>
> Following Dr. Murdoch's suggestion, I looked at qqplot. The following
> approach might be helpful to get to the same information as given by
> qqplot.
> To summarize the ask: given x, y, xw and yw, show (visually is okay)
> whether a and b are from the same distribution. xw is the weight of
> each x observation and yw is the weight of each y observation.
>
> Put x and xw into a dataframe.
> Sort by x.
> Calculate cumulative x weights, normalized to total 1.
>
>...
2005 Jun 16
3
Moving average
Good morning all!
I am attempting to superimpose a moving-average smoother onto a graph of
daily plots. These plots (in table[,2] below) span about 350 days and
looks very noisy. I'd like for this smoother to plot the average of each
group of 7 consecutive days (weekly) and show a line which joins these
series of averages. Given the definition of MA, the first and last points
will
2019 Feb 18
0
Dsync and network issues
...:
close((&conn->fd)) @ client-connection-tcp.c:632 failed (fd=15): Connection
reset by peer
Feb 18 08:33:14 dsync-server(XY at XY): Error: client_connection_tcp_free:
close((&conn->fd)) @ client-connection-tcp.c:632 failed (fd=15): Connection
reset by peer
Feb 18 08:44:07 dsync-server(XW at XW): Error: client_connection_tcp_free:
close((&conn->fd)) @ client-connection-tcp.c:632 failed (fd=15): Connection
reset by peer
It happens sometimes (usually early morning) when users are syncing their
mailboxes.
Is there a way to debug this and find what is happening?
Thanks for you...
2006 May 08
2
Making a array to use with @user.
Hi all,
I made this array:
@army_types = ["ss","s","xl","l","m","w","xw"]
but, I want to be able to go like this
@army_types.each do |st|
@user.st
end
but, I get the error that "@user.st" st is not a valid feild for the
table user.
Is there a way to get around MySQL running it first?
--
Posted via http://www.ruby-forum.com/.
2006 May 12
1
Some error about adding.
...I''m trying to make a little exchange 3 for 1 of 1 higher rank here
is the code in the controller:
def exch_link
@id = @session[:user].id
@type = @params[:type]
exch(@id,@type)
end
def exch(user_id,this_type)
@user = User.find(:condtions => "id = " + user_id)
@ranks = ["xw","w","m","l","xl","s","ss"]
if @user.send(this_type) >= 3
@this_type = @ranks.index(this_type)
@nexts_number = @this_type.to_i + 1
@next_type = @ranks[@nexts_number]
@user.send(@next_type) += 1
@user.send(type)
@user.save_wit...
2012 Sep 05
0
CEBA-2012:1231 CentOS 6 brltty FASTTRACK Update
...e brlapi-java-0.5.4-7.el6.i686.rpm
e1030c2d9693357ddfb9cb4683e08794c933e24174b5ae5b88d47c396375fe79 brltty-4.1-7.el6.i686.rpm
0bf0c4c045dd6abbd8ae44dec5b26d45060caddd0a75c0958ea548bf50f69dfb brltty-at-spi-4.1-7.el6.i686.rpm
944ee51f812703da17778e15e31aeb42ba1eacd04cdfcbd1e14c9f17933ef3b0 brltty-xw-4.1-7.el6.i686.rpm
33dce51e57023ec2f4c7a68c9d2336f914f7eb1a77bd303894f1b2c797a290c2 python-brlapi-0.5.4-7.el6.i686.rpm
1ff988144a4c57ced46a8e302396526268a6b11520b5256f8aa579b4438fb162 tcl-brlapi-0.5.4-7.el6.i686.rpm
x86_64:
9ad4c9e7d10469898c5738f4c91f29f4bc2587ea8042ba214288becc62fefe9c brlapi...
2017 Jun 29
1
NUT supporting Modbus TCP
Yeah, I have its datasheet (it's a Xantrex XW invertor by the way). I do not know why creating a more-or-less generic driver is an issue. Of course, there are Modbus beasts that can scare everyone but mostly one would need to read either intreger or float numbers out of Modbus registers in order to decide whether or not to start or stop the sh...
2006 Oct 25
2
[PATCH] Edge buttons
...+168,59 @@ updateDefaultIcon (CompScreen *screen)
return TRUE;
}
+static void
+updateScreenEdges (CompScreen *s)
+{
+
+ int edgeSize = 0;
+
+ edgeSize = s->opt[COMP_SCREEN_OPTION_EDGE_SIZE].value.i;
+ if (edgeSize < 0)
+ edgeSize = 1;
+
+ struct screenEdgeGeometry {
+ int xw, x0;
+ int yh, y0;
+ int ww, w0;
+ int hh, h0;
+ } geometry[SCREEN_EDGE_NUM] = {
+ { 0, 0, 0, edgeSize,
+ 0, edgeSize, 1, (-2*edgeSize) }, /* left */
+
+ { 1, (-1*edgeSize), 0, edgeSize,
+ 0, edgeSize, 1, (-2*edgeSize)}, /* right */
+
+ { 0, edgeSize, 0, 0,
+ 1, (-2*...
2012 Sep 05
0
CentOS-announce Digest, Vol 91, Issue 2
...e brlapi-java-0.5.4-7.el6.i686.rpm
e1030c2d9693357ddfb9cb4683e08794c933e24174b5ae5b88d47c396375fe79 brltty-4.1-7.el6.i686.rpm
0bf0c4c045dd6abbd8ae44dec5b26d45060caddd0a75c0958ea548bf50f69dfb brltty-at-spi-4.1-7.el6.i686.rpm
944ee51f812703da17778e15e31aeb42ba1eacd04cdfcbd1e14c9f17933ef3b0 brltty-xw-4.1-7.el6.i686.rpm
33dce51e57023ec2f4c7a68c9d2336f914f7eb1a77bd303894f1b2c797a290c2 python-brlapi-0.5.4-7.el6.i686.rpm
1ff988144a4c57ced46a8e302396526268a6b11520b5256f8aa579b4438fb162 tcl-brlapi-0.5.4-7.el6.i686.rpm
x86_64:
9ad4c9e7d10469898c5738f4c91f29f4bc2587ea8042ba214288becc62fefe9c brlapi...
2006 May 04
6
Login generator ALWAYS says login unseccesfull
...0:00:00'',
`password` varchar(40) default NULL,
`points` int(30) NOT NULL default ''0'',
`activated` int(1) NOT NULL default ''0'',
`a_key` int(6) NOT NULL default ''0'',
`email` varchar(100) NOT NULL default '''',
`xw` int(100) NOT NULL default ''0'',
`w` int(100) NOT NULL default ''0'',
`m` int(100) NOT NULL default ''0'',
`l` int(100) NOT NULL default ''0'',
`xl` int(100) NOT NULL default ''0'',
`s` int(100) NOT NULL defa...