Displaying 20 results from an estimated 71 matches for "rightmost".
2016 Aug 04
1
findInterval(all.inside=TRUE) for degenerate 'vec' arguments
...x,vec,all.inside=TRUE) return when length(vec)<=1,
so there are no inside intervals?
R-3.3.0 gives a decreasing map of x->output when length(vec)==1 and -1's
when length(vec)==0. Would '0' in all those cases be better?
> findInterval(x=c(10, 11, 12), vec=11, all.inside=TRUE,
rightmost.closed=FALSE, left.open=FALSE)
[1] 1 0 0
> findInterval(x=c(10, 11, 12), vec=11, all.inside=TRUE,
rightmost.closed=FALSE, left.open=TRUE)
[1] 1 1 0
> findInterval(x=c(10, 11, 12), vec=11, all.inside=TRUE,
rightmost.closed=TRUE, left.open=FALSE)
[1] 1 0 0
> findInterval(x=c(10, 11, 12), vec...
2009 Jul 13
1
[PATCH] ocfs2: Add extra credits and access the modified bh in update_edge_lengths.
In normal tree rotation left process, we will never touch the tree
branch above subtree_index and ocfs2_extend_rotate_transaction doesn't
reserve the credits for them either.
But when we want to delete the rightmost extent block, we have to update
the rightmost records for all the rightmost branch(See
ocfs2_update_edge_lengths), so we have to allocate extra credits for them.
What's more, we have to access them also.
Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
fs/ocfs2/alloc.c | 46 ++++++++++...
2009 Jun 12
2
[PATCH 0/2] ocfs2: Adjust rightmost path in ocfs2_add_branch.v2
Hi Mark/Joel,
This is the v2 of bug fix for ocfs2_add_branch.
Modification from V1 to V2:
1. Create a patch which return EROFS instead of BUG in ocfs2_insert_at_leaf.
2. Use ocfs2_adjust_rightmost_records to change the root and extent
blocks in the rightmost path.
Regards,
Tao
2009 Jun 02
1
[PATCH] ocfs2: Adjust rightmost path in ocfs2_add_branch.
In ocfs2_add_branch, we use the rightmost rec of the leaf extent block
to generate the e_cpos for the new added branch. In the most case, it
is OK but if there is a gap between the the root(or branch) 's rightmost
rec and the leaf, it will cause kernel panic if we insert some clusters
in it. The message is something like:
(7445,1):ocfs...
2024 Sep 17
1
findInterval
...length
not typical.
Not that the design of findInterval(x, vec, ..) is indeed to always return
an index, but there isn't any "nomatch", but rather a
- "left of the leftmost", i.e., an x[i] < vec[1] (as 'vec' must be
sorted increasingly) or
- "right of rightmost" , i.e., an x[i] > vec[length(vec)]
and these should give *different* results (and not both the
same).
I don't think 'nomatch' would improve the relatively clean findInterval()
behavior.
There are three logical switches ... which allow 2^3
variants of which I now guess...
2010 May 06
3
Supressing axes 3 and 4 when using plot()
Is there a way of doing this? I'm using plot() to produce a scatter of
my data, but it routinely defaults to plotting 2 sets of x axes and 2
y axes. I'd like to not plot the upper and rightmost axes. I can use
'axes=F', and then manually add axes with 'axis', but then the newly
created axes do not intercept.
TIA,
Dan
2009 Jul 21
3
[PATCH 0/2] Two b-tree bug fixes.
Hi Mark/Joel,
These are 2 bug fix for b-tree. Please review.
I have sent out the first one last week, but it was based on cacheme.
So resend it. Now it bases on joel's fixes branch.
The second one is another b-tree rotation bug. I guess the reason why
we never meet with it is that no one has ever used b-tree like reflink
before. ;)
Regards,
Tao
2007 Jun 26
3
[PATCH] Always use mipmaps in cube plugin
...ich leads to ugly look
of textures.
The attached patch fixes this. This leads to another kind of artifacts,
which are fixable with anisotropic filtering.
http://team.pld-linux.org/~wolf/aniso.png
The leftmost image is the current state of cube plugin. The center image
is with mipmaps enabled. The rightmost is with mipmaps and anisotropic
filtering.
wolf
--
Bartek .
Taudul :
.:....................................................................
w o l f @ p l d - l i n u x . o r g .:. http://wolf.valkyrie.one.pl/
-------------- next part --------------
diff -ruN compi...
2009 Jun 12
2
Slicing an array
...dimensional array for example:
array4d
, , 1, 1
[,1] [,2]
[1,] 3 6
[2,] 1 1
, , 2, 1
[,1] [,2]
[1,] 4 7
[2,] 8 7
, , 1, 2
[,1] [,2]
[1,] 7 8
[2,] 8 7
, , 2, 2
[,1] [,2]
[1,] 7 5
[2,] 9 9
I want to slice the array from the rightmost dimension, getting in sequence:
array4d[,,,1]
array4d[,,,2]
then slicing those 3D arrays, and so on. I'm pretty sure that this will
involve a:
do.call('[',...)
construction, but I haven't been able to work out how to specify the
list of arguments, in particular the index vecto...
2024 Sep 16
1
findInterval
Suppose we have `dat` shown below and we want to find the the `y` value
corresponding to the last value in `x` equal to the corresponding component
of `seek` and we wish to return an output the same length as `seek` using
`findInterval` to perform the search. This returns the correct result:
dat <- data.frame(x = c(2, 2, 3, 4, 4, 4),
y = c(37, 12, 19, 30, 6, 15),
seek = 1:6)
2005 Oct 31
6
getting last 2 charcters of a string, other "text" functions?
I wish to obtain the right-most n characters of a character string? What is the appropriate function?
---------------------------------
[[alternative HTML version deleted]]
2012 Jan 18
2
How do I exactly align the right hand side of "mtext" relative to a plot device? Beyond "adj".
...t which I'm adding to a plot using
"mtext". I would like to specify the position of the right hand end of the
text string, relative to the device (in the left-right direction).
I've been looking at the use of the argument "adj". But this can't be used
to specify the rightmost point of the text. Neither does it specify exactly
the centre of the text, so I'm not sure exactly how it works.
I could hack it and change "adj" accordingly but this is part of a function
which I need to generalise. So it needs to be the same regardless of the
length of the added te...
2003 Oct 30
1
legend over-prints barplot bar
When I create a bar plot, the legend is obscuring the rightmost bar.
I haven't found a setting that appears to affect the positioning of the legend - any tips re moving the legend would be most appreciated.
paul sorenson
2007 Dec 19
1
lattice: axes drawn when relation='free' or relation='sliced' but not when relation='same'
..., rot=90)
fig1 <- xyplot( [...], scales=list(x=xaxs, y=yaxs))
I want this to draw ticks and labels on the left-hand side of each panel. Instead, I get ticks on the left-hand side of only the
panels in the leftmost column, and labels only on the right-hand side of the rightmost column. What can account for that?
What seems especially peculiar is that when I change relation to 'sliced' or 'free', the axes are drawn as I want them to be drawn.
The data that I'm plotting are numeric and range from -.3 to 1.9. I'm using R 2.6.1 and lattice 0.17-2 o...
2011 Feb 28
1
changing origin and plotting complex graphs
...ays area under rice in 1960s on the x axis, and percentage change in
area under rice between 1960 and 1990 on the y axis. Let origin of the plot
be at (50 per cent of area of rice in India as a whole,percentage change in
area of rice in India as a whole). Then label with name of State three
highest/rightmost points and three lowest/leftmost points.
please help!
i'm a novice..so simple commands only please
--
--
[[alternative HTML version deleted]]
2008 Jan 29
2
[PATCH 0/2] Unwritten extent merge update, V2
The old extent merging code down underneath "ocfs2_mark_extent_written()"
can't merge extents between leaf blocks. This patch resolve this.
So that a large unwritten extent which has been split up with a bunch of
writes can be merged together once all unwritten regions have been written to.
Modification from V1 to V2:
1. Add more comments for some functions which is more complicated
2008 Sep 22
1
findInterval(), binary search, log(N) complexity
Dear R users,
the help for findInterval(x,vec) suggests a logarithmic dependence on N
(=length(vec)), which would imply a binary search type algorithm.
However, when I "test" this hypothesis, in the following manner:
set.seed(-3645);
l <- vector();
N.seq <- c(5000, 500000, 1000000, 10000000, 50000000);k <- 1
for (N in N.seq){
tmp <- sort(round(stats::rt(N, df=2), 2));
2012 Nov 15
1
depmixS4 prediction
...nobserved, and
get the prediction for those (conditioned on observed covariates for the
response) using the filtering or smoothing distributions.
I could ultimately pull out the relevant parameters of the conditional
distribution of the response in each hidden state, the transition
probabilities, rightmost posterior probability on the fully observed
sequence , and write my own code to make predictions, but am wondering if
there is a more direct way of doing it in the package.
Thanks in advance for any suggestions,
EJ
[[alternative HTML version deleted]]
2006 May 20
1
ANCOVA, Ops.factor, singular fit???
...del<-lm(ln2~sex+ln1)
and got this:
Warning message:
- not meaningful for factors in: Ops.factor(y, z$residuals)
which I don't understand. (In my matrix, ln2 is the name of the second column,
a response variable, and ln1 is the name of the first column, a concomitant
variable. Sex is the rightmost column, indicating sex. The first 14 rows are
measurements for male individuals, and the next 13 rows are measurements for
female individuals.)
The data output is bizarre, too--it's just so long, and everything begins with
"ln 11" or "ln 12". How can I fix this?
I have a...
2007 Sep 27
1
RMySQL NA/NULL value storage error
...test,"x",x,overwrite=T,row.names=F)
[1] TRUE
> dbGetQuery(test,"SELECT * FROM x")
X1 X2 X3 X4 X5
1 -6 NA 6 NA 0
2 2 -8 -3 -22 9
3 -8 5 15 11 8
4 16 NA 4 NA 6
>
>
The NAs in column 4 are maintained.
The pattern continues if I add more NAs in the rightmost column, regardless
of how many columns there are. Any ideas as to what is going on? Is this a
bug? I did look at the table stored in the MySQL database via Toad and the
inner columns correctly have {NULL} values in the NA fields, but the
rightmost column has zeros. So it seems that the problem...