search for: aold

Displaying 7 results from an estimated 7 matches for "aold".

Did you mean: aol
2015 May 28
3
S4 inheritance and old class
...ld like to develop a package using S4 classes. I have to define several S4 classes that inherits from each others as follow: # A <- B <- C <- D I also would like to define .DollarNames methods for these class so, if I have understood well, I also have to define an old class as follow: # AOld <- A <- B <- C <- D setOldClass(Classes = "AOld") setClass( Class = "A", contains = "AOld", slots = list(A = "character") ) .DollarNames.A <- function(x, pattern) grep(pattern, slotNames(x), value = TRUE) setClass( Class = "B...
2015 May 28
0
S4 inheritance and old class
...ses. > I have to define several S4 classes that inherits from each others as > follow: > > # A <- B <- C <- D > > I also would like to define .DollarNames methods for these class so, if I > have understood well, I also have to define an old class as follow: > > # AOld <- A <- B <- C <- D > > setOldClass(Classes = "AOld") > > setClass( > Class = "A", > contains = "AOld", > slots = list(A = "character") > ) > > .DollarNames.A <- function(x, pattern) > grep(pattern,...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...libswfdec/swfdec_color.c @@ -56,6 +56,32 @@ swfdec_color_set_source (cairo_t *cr, Sw SWFDEC_COLOR_B (color) / 255.0, SWFDEC_COLOR_A (color) / 255.0); } +SwfdecColor +swfdec_color_apply_transform_premultiplied (SwfdecColor in, + const SwfdecColorTransform * trans) +{ + int r, g, b, a, aold; + + aold = SWFDEC_COLOR_A (in); + if (aold == 0) + return 0; + + a = (aold * trans->aa >> 8) + trans->ab; + a = CLAMP (a, 0, 255); + + r = SWFDEC_COLOR_R (in); + g = SWFDEC_COLOR_G (in); + b = SWFDEC_COLOR_B (in); + r = (r * trans->ra * a / aold >> 8) + trans->rb...
2003 Oct 21
5
run R under linux
...imate the success probability, which is very small, so my samples may be all 0s. I have tried, if the samples are all 0s, one parameter tends to be infinity, and one NA comes. I want to do 200 simulations. I found during the fisrt 128 simulations, some parameters may be NAs, since I use if (abs(aold-anew)<1e-5) {print (anew) break} to break the one estimation. Some anew is not printed. I think NA comes. But for the 129th simulation, one matrix is singular and my program ends. I want to know how to resume my program with the seeds saved, and do like continueing the 130th one without br...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...libswfdec/swfdec_color.c @@ -56,6 +56,32 @@ swfdec_color_set_source (cairo_t *cr, Sw SWFDEC_COLOR_B (color) / 255.0, SWFDEC_COLOR_A (color) / 255.0); } +SwfdecColor +swfdec_color_apply_transform_premultiplied (SwfdecColor in, + const SwfdecColorTransform * trans) +{ + int r, g, b, a, aold; + + aold = SWFDEC_COLOR_A (in); + if (aold == 0) + return 0; + + a = (aold * trans->aa >> 8) + trans->ab; + a = CLAMP (a, 0, 255); + + r = SWFDEC_COLOR_R (in); + g = SWFDEC_COLOR_G (in); + b = SWFDEC_COLOR_B (in); + r = (r * trans->ra * a / aold >> 8) + trans->rb...
2002 Nov 12
2
rsync for /etc/passwrd /etc/samba/passwd
Can somebody give me a quick education on sync'ing users, passwords and groups between 2 linux servers. Im using Redhat 7.1 as PDC and BDC using Samba. I want to sync mainly /etc/passwd, /etc/smbpasswd, /etc/group to get a consistancy going in the domain... please guide me sync'ing passwords between them ..BOTH WAYS.....if a user changes a password on one computer it gets changed on
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...n_bits = swfdec_bits_getbits (bits, 4); diff --git a/libswfdec/swfdec_color.c b/libswfdec/swfdec_color.c index e609e53..9ef554a 100644 --- a/libswfdec/swfdec_color.c +++ b/libswfdec/swfdec_color.c @@ -62,6 +62,9 @@ swfdec_color_apply_transform_premultiplied (SwfdecColor in, { int r, g, b, a, aold; + if (trans->mask) + return SWFDEC_COLOR_COMBINE (0, 0, 0, 255); + aold = SWFDEC_COLOR_A (in); if (aold == 0) return 0; @@ -87,6 +90,9 @@ swfdec_color_apply_transform (SwfdecColor in, const SwfdecColorTransform * trans { int r, g, b, a; + if (trans->mask) + return...