search for: setalpha

Displaying 4 results from an estimated 4 matches for "setalpha".

2007 Oct 27
1
Newton method iteration problem
...arget function (phi(x)-alpha) (allow input x and alpha) target<-function(x,alpha){ pnorm(x)-alpha } #generate the first derivative of the of the target function firstDerivative<-function(x){ exp(-(x^2)/2)/sqrt(2*pi) } # Finding the root by Newton method rootFinding<-function(initialX,setAlpha){ while(target(initialX,setAlpha)!=0){ initialX<-initialX-(target(initialX,setAlpha)/firstfirstDerivative(initialX) } initialX } -- View this message in context: http://www.nabble.com/Newton-method-iteration-problem-tf4701085.html#a13439031 Sent from the R help mailing list archive at Nabble....
2006 Sep 21
2
wxImage patches
...the RMagick sample to work with wxRuby2. They also open up some functions that were %ignored that probably shouldn''t be (at least with the typemap adjustment). I think we may need to visit (or document carefully) what happens when you pass in a string of data to the constructor or to SetAlpha. We need to decide which setting of static_data is correct for the library. Does anyone know of any reason we would or wouldn''t want to just set the unsigned char * typemap in typemap.i? Roy _______________________________________________ wxruby-users mailing list wxruby-users@ruby...
2007 May 04
0
[1007] trunk/wxruby2/swig: Fixed Wx::Image#scale and rescale signature, also added needed constants.
...;cx"> wxImage Rotate90(bool clockwise = true) const; </span><del>- wxImage Scale(int width , int height ) const; </del><ins>+ wxImage Scale(int width, int height, int quality = wxIMAGE_QUALITY_NORMAL ) const; </ins><span class="cx"> void SetAlpha(unsigned char * alpha = NULL, bool static_data = false ) ; </span><span class="cx"> void SetAlpha(int x , int y , unsigned char alpha ) ; </span><span class="cx"> void SetData(unsigned char* data ) ; </span></span></pre> </div&...
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...with - . wxImage takes ownership of the pointer and will free it. -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param unsigned char * -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> void SetAlpha(unsigned char * alpha = NULL, bool static_data = false ) ; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Sets the alpha value for the given pixel. This function...