search for: interpolation

Displaying 20 results from an estimated 1117 matches for "interpolation".

2013 Jan 17
1
Help with interpolation
...40 1996 01 03 49 5.67226 1996 01 03 77 5.60371 1996 01 03 168 5.47058 1996 01 03 259 5.34662 1996 01 03 350 5.26630 For every day i have to interpolate 10 values, for example for maturities of 30,60 or 90 days. I have interpolate data for a one year period, 10 interpolation values a day, so that equals 3600 values. what's the easiest way to implement this in R? please hlep! -- View this message in context: http://r.789695.n4.nabble.com/Help-with-interpolation-tp4655843.html Sent from the R help mailing list archive at Nabble.com.
2013 Jul 24
1
Alpha channel in colorRamp() and colorRampPalette()
Hi all, I had the need to create a colorbar considering the alpha channel of the colors, but colorRamp() and colorRampPalette() ignored the alpha argument in rgb(). So I performed some minor modifs. in their codes, as to support the interpolation using the alpha channel. I guess that those simple modifications might be useful for other people, so perhaps it would be worth to add them to colorRamp and colorRampPalette codes in grDevices? the modified functions follows. Cheers, Alberto. colorRampPalette <- function (colors, ...)...
2008 May 29
1
akima interpolation and triangulation question
Dear all; First of all, this is probably a more conceptual question than a R-related one, but still want to give it a try. When working with the interpolation function "interp" from the package akima and the triangulation function "tri.mesh" from package tripack I've got NA's for the interpolation and "error" for the triangulation. The data is arranged in a regular grid as opposed to what the help page for interp say...
2008 Sep 01
2
Interpolation Problems
...ge each time. With regard to the latter 'collapsing to unique 'x' values', I'm not sure what this means exactly, or how to deal with it. Any words of wisdom on how I should go about this, or whether I should use an alternative command (I want to perform a simple (e.g. linear) interpolation), would be much appreciated. Many thanks for any advice offered, Steve
2003 Sep 21
3
Z aware interpolation
Hello again, There is any package which does Z aware (real 3D) interpolations? It can be any method (IDW, kriging or spline) but it should take into consideration not only x and y coordinates for interpolation, but also z coordinate. I looked into different packages but it seems i didn't find the right one. The ultimate goal is to import the output into a GIS (Geog...
2001 May 22
1
2D interpolation function
As part of a project I am doing, I had to present a 2D table as a surface. This was fairly straightforward (using persp), but I needed to interpolate points to make it sort of pretty. This was done by using quadratic interpolation between the existing points to smooth out the surface a bit. As I couldn't find an R function that did this, I wrote an admittedly nasty pair of functions that will interpolate any reasonable number of equally spaced points between the values of an object produced by table(), smoothed with any...
2008 Jul 10
4
Interpolation of data
Hello, I have the data whcih are not balanced (several missing observations), and one possibility is t use interpolation method to get the information missing in this series from other series. Does anybody know how I can program interpolation of series1 (which ahs missing observations) and series 2-6, for example. Thanks a lot in advance, Silke
2010 Jul 29
1
Linear Interpolation question
...data structure a <- c(NA,1,NA,5,NA,NA,NA,10,NA,NA) c <- c(1:10) df <- data.frame(timestamp=a, sequence=c) print(df) where i would like to linearly interpolate between the points 1,5, and 10 in 'timestamp'. Original timestamps should not be modified. Here the code I use to run the interpolation (so far): # linear interpolation print(c) results <- approx(df$sequence, df$timestamp, n=NROW(df)) print(results) df$timestamp <- results$y # plotting plot(c, a, main = "Linear Interpolation with approx") points(results, col = 2, pch = "*") # new dataframe print(df) wh...
2008 Apr 04
1
Resampler experimental speedups
Hello :) The attached patch (which is not in any way finished) optimizes the resampler. (For those following the discussions on IRC; this version includes optimizations for both direct and interpolate cases). Using GCC 4.3, x86_64, Valgrind to measure instruction counts, resampling 10 frames of 320 floats at quality 3. Direct was measured with a 16=>48 resampling, and interpolate with a
2002 Nov 04
2
interpolation
Hello, I have 15 data points (weight at birth) by age which I want to interpolate back in time (to 5 more age points). There are many functions in R to do this and I wonder if anyone has experience in using these -- any preference/caveat etc? I am trying to find an alternative to linear interpolation. Using R 1.6.0 under windows TIA Marwan -------------------------------------------------------------------------------- -------------------------------------------------------- Marwan Khawaja - http://webfaculty.aub.edu.lb/~mk36/ If you have MS Internet Explorer! -------------------------...
2002 Sep 09
1
Monotonic interpolation
Has anyone got a function for smooth monotonic interpolation of a univariate function? I'm after something like the NAG function PCHIM which does monotonic Hermite interpolation. Alternatively, montononic cubic spline interpolation. Please reply directly. Rob Hyndman ___________________________________________________ Rob J Hyndman Associate Professo...
1998 May 25
2
RFC: spline / splinefun (etc) amalgamation
At present R has separate functions "spline" and "splinefun". The first of these carries out spline interpolation of a data set and returns the interpolated values; the second returns the interpolating function itself (approx and approxfun are similar). I would like to combine these into a single function "spline" with an (optional) argument which determines which kind of value is returned. E.g. s...
2013 Feb 26
2
Help on a code
...66666667, 62.1666666666667, 85.9166666666667, 108.916666666667) y <-c(1.77, 2.39, 3, 2.65, 2.62, 1.8) Interpolated <- approx(x, y,xout=0:tail(x, n=1),method="linear") plot(Interpolated)   in this code x is time in hours (cumulative), and y is a biological variable. I am using linear interpolation assuming getting from y(i) to y(i+1) is a linear path. I would like to calculate the time in this case that it takes to surpass the y value of 2 for the first time. If you look at the plot, you will see that the y value of 2 is crossed on 2 occasions: between the first and second value of y (ie:1.7...
2009 Jan 08
2
interpolation to abscissa
Readers, I have looked at various documents hosted on the web site; I couldn't find anything on interpolation. So I started r and accessed the help (help.start()). (by the way is it possible to configure r to open help in opera instead of firefox?) Initially I read the help for the akima package but couldn't understand it. Next I tried the asplines package help. I tried to copy the example: x<-c(-3...
2002 Oct 07
2
Error in writeBin(object, con, size = 2)
Hi all, I wrote a function (in R batch mode) which reads binary data, interpolates sometimes and wrote a new binary file of the same size as the input file. Her is a bit of code: while (length( head <- readBin(si, integer(), 64, size=2))) { data <- readBin(si, integer(), head[5], size=2) ## now write head to new file writeBin(head, so, size=2) ## if head[4] is 9 or
2009 Jun 21
1
Problems with bilinear interpolation of a grid
...g the number of cells within the frame (i.e. convert to 720 x 360 grid). I wish to have longitudinal values ranging from -179.75 to 179.75 and latitudinal values from 89.75 to -89.75. I selected the 'interp.surface' function in the 'fields' package to do this as it provides bilinear interpolation from one grid to another. I have written the following code to try and carry out my interpolation... > library(fields) > x.mat <- sprintf("%.2f", seq(from = -179.5, to = 179.5, length=360)) # longitude grid values > y.mat <- sprintf("%.2f", seq(from = 89.5, to...
2011 Jun 29
3
time series interpolation
...new$temp<- approx(w03_11temp$temp, n = (nrow(w03_11temp)*5))$y Error in new$temp <- approx(w03_11temp$temp, n = (nrow(w03_11temp) * 5))$y : Object of type 'closure' not registered Any idea?? Thanks a lot. -- View this message in context: http://r.789695.n4.nabble.com/time-series-interpolation-tp3633193p3633193.html Sent from the R help mailing list archive at Nabble.com.
2000 Jul 27
1
Interpolation using a piecewise linear function in higher dimensions
Dear all, I am just wondering if anybody has implemented a function that can give a piecewise linear interpolation in more than 2 dimensions? I have looked at the akima package, but I would rather like a piecewise linear interpolation rather than a spline and while it did the job quite satisfactory for 2 dimensions, I need to interpolate in at least three dimensions. If anybody has implemented something like t...
2013 Sep 18
1
ENC paramater interpolation in ENC, and inline templates
I''m in the process of rolling out a new homegrown ENC (we''ve decided on using an ENC over hiera; I know it''s not the way a lot of you are going, but it''s right for us) and am running into some issues with variable interpolation in ENC data. To give a concrete example, I''m using modules to configure puppetdb, puppet master, and puppet clients. So, there''s a bunch of shared data within an environment (like the server name, port, etc.). What I''d like to do is have my ENC set a top-level param hash...
2004 Sep 07
1
interpolation of lost frames
Hi, When an audiopacket is received too late I could interpolate this frame. The problem is that I don't know if it is a true bufferloss or just the last audiopacket of a talkspurt. Now my question is if it's harmfull for the audioquality that at the end of the talkspurt one frame is interpolated? Or would this be almost inpossible to hear since the last audiopacket in the talkspurt