similar to: 'distance' between a vector and a permutation of the vector

Displaying 13 results from an estimated 13 matches similar to: "'distance' between a vector and a permutation of the vector"

2008 Nov 17
1
using an image as a dendrogram label
Hi, does anybody know if it is possible to use an image (rather than text) to label the leaves of a dendrogram? I realize that this will not always lead to a useful on-screen display, but ideally I'd like to directly go from the dendrogram to a PDF and on-screen viewing is not to too important for me. Also, my trees are relatively small. Any pointers would be apreciated
2009 Feb 07
1
vignettes are installed but not viewable?
Hi, I have a package for which I'm writing a vignette. The vignette looks fine as indicated by R CMD check. However after installing the package (in my personal R library location) doing vignette('rcdk') says Warning message: vignette 'rcdk' *not* found But I can see the PDF file located under rcdk/doc in the R library directory. The header of the Rnw file is %
2008 Nov 21
2
rgl lighting question
Hi, I'm using rgl to generate a 3D surface plot and I'm struggling to get the lighting correct. Currently the surface gets plotted, but is very 'shiny'. On rotating the view, I get to see parts of the surface - but overall I don't see much detail because of the spotlight like lighting. I've played around with the specular, ambient and diffuse but I can't
2011 Aug 28
1
Hanging boot of solaris 11 install image as HVM
Hello, It looks like xen 4.1.2* has some problems with solaris 11 iso images too (s. further below log messages) hvm-solaris11.born2b3.net.cfg # --- kernel = ''/usr/lib64/xen-default/boot/hvmloader'' builder = ''hvm'' device_model= ''/usr/lib64/xen-4.1/bin/qemu-dm'' name = ''solaris11hvm.born2b3.net'' acpi =
2010 Mar 09
1
Help with adding points to allEffects plot
Thanks in advance for any help. I am attempting to add points to a plot using the allEffects command in the effects package. When I try to add the points I get the following error message: Error in plot.xy(xy.coords(x, y), type = type, ...) : plot.new has not been called yet Strangely, using the code I've pasted below this has worked for me in the past however figuring out what has
2009 Aug 20
2
Problem passing a statistical model as an argument
Dear Colleagues: I would like to write a front end for a modeling function, but run into trouble when passing a weights argument. y <- 1:5 x <- c(1,3,2,5,4) w <- function(formula, ...) lm(formula, ...) lm(y ~ x, weights=c(1,1,1,2,2)) w(y ~ x) w(y ~ x, weights=c(1,1,1,2,2)) Error in eval(expr, envir, enclos) : ..1 used in an incorrect context, no ... to look in w <-
2005 Apr 21
2
apply vs sapply vs loop - lm() call appl(y)ied on array
Christoph -- There was just a thread on this earlier this week. You can search in the archives for the title: "refitting lm() with same x, different y". (Actually, it doesn't turn up in the R site search yet, at least for me. But if you just go to the archive of recent messages, available through CRAN, you can search on refitting and find it. The original post was from William
2008 Apr 11
2
issues on Net:HTTP
in cotroller: @url=URI.parse(''http://google.com.sg/webhp'') @res = Net::HTTP.get_response(@clarifyurl) in view: <%=@res.body> this page displayed as 301 Moved The document has moved here what''s wrong with my code, I want to get the correct reponse HTML content from google. --~--~---------~--~----~------------~-------~--~----~ You received this message
2002 Aug 22
1
RXLisp
I was obviously fascinated by Duncan's earlier message on RXLisp. I managed to build a working version of RXLisp for OS X, by some unabashed and rather uninformed hacking. I compiled XLISP-STAT using the gcc flags -fno-common and --no-cpp-precomp (not sure if they are necessary or not, they are part of an older hack). I "make libxlisp.so", using Duncan's replacement for the
2008 Apr 11
7
Net::SMTPAuthenticationError
Hey guys, I want to send an email via ROR and I have put this code at the very end in the config/environment.rb file- ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.perform_deliveries = true ActionMailer::Base.logger = nil ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.smtp_settings = { :address => "[my smtp server]", :port => 25, :domain
2008 Apr 10
3
New to ruby, Need help
I''m attempting to make a simple program, just combine two images and output a .jpg file. Here''s what I have: class PicController < ApplicationController require ''RMagick'' def index im1 = Magick::Image.read(''1.jpg'') {self.size = "81x81"}.first im2 = Magick::Image.read(''2-1.jpg'').first result = im1.composite(im2,
2004 Jul 19
10
How to compare X1 = X2 = ... = Xn?
Dear All, I have a data frame with n columns: X1, X2, ., Xn. Now I want to create a new column: if X1 = X2 = . = Xn, the value is 1; Otherwise, the value is 0. How to do that in a quick way instead of doing (n choose 2) comparisons? Thank you, Frank [[alternative HTML version deleted]]
2016 Nov 21
2
Winbind traffic not encrypted
A problem here getting winbind traffic to be encrypted using Kerberos. I have set up a test environment with a pair of servers (actually lxc containers): - samba server (ubuntu 16.04, stock samba 4.3.11) - client machine (ubuntu 16.04) joined with "net ads join" and winbind The client machine has the following in /etc/samba/smb.conf: ------- [global] #netbios name = client-ad