smooth

Smooth of series data

非 Y 不嫁゛ 提交于 2019-12-08 05:39:03
问题 i need to smooth better this kind of plot, I've already used a moving average (10 points) to get this plot but it's not yet perfect. I want to remove all these little peaks dued by noise, I need to consider only the bigger ones because I'm counting the num of beats from a sensor. (ie.: in the first 30 seconds I should have just one peak instead of several successive little peaks) I thought to use a cubic spline but isn't simple to implement in C and it's going to take almost 1-2 weeks of work

smoothing surface plot from matrix

依然范特西╮ 提交于 2019-12-07 17:01:06
问题 I'm trying to smooth a 11 X 8 matrix and I can't seem to find a way to do this. I know there are several threads on this but none has helped for my situation. Every approach I've found requires some sort of z ~ x*y approach. In my case I just have a matrix that I would like to simply smooth all of the cell entries to make a smoother surface plot. m [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 29.02530 28.57123 39.02334 38.25483 29.59624 65.01706 41.04771 98.62005 [2,] 24.46539 24.08265 32

How do you create a crossfade transition between multiple videos in FFMPEG?

这一生的挚爱 提交于 2019-12-06 12:33:51
I am currently looping MP4 videos with audio through FFMPEG. Here is the code del intermediate1.ts del f.txt echo file intermediate1.ts>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file intermediate1.ts>>f.txt echo file

smoothing surface plot from matrix

有些话、适合烂在心里 提交于 2019-12-06 03:06:54
I'm trying to smooth a 11 X 8 matrix and I can't seem to find a way to do this. I know there are several threads on this but none has helped for my situation. Every approach I've found requires some sort of z ~ x*y approach. In my case I just have a matrix that I would like to simply smooth all of the cell entries to make a smoother surface plot. m [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 29.02530 28.57123 39.02334 38.25483 29.59624 65.01706 41.04771 98.62005 [2,] 24.46539 24.08265 32.89272 32.24494 24.94663 54.80279 34.59906 83.12670 [3,] 28.30679 27.86395 38.05733 37.30784 28.86359 63

How to create a smooth animation using C# Windows forms?

别来无恙 提交于 2019-12-06 00:56:24
问题 due my school project I must create a game using Windows forms only.. I have decided to create a 2D racing game. So now I need to move the car image. To move it I tried to animate the car with the KeyDown event, however the animation is really Faltering.. So is there any other way to create animation? or is it possible to soomth it somehow? (For the car I use a PictureBox that Docked to the form and in its paint event im redrawing the car in the right window positions.) 回答1: This post should

HTML 5 video streaming .ism file?

ε祈祈猫儿з 提交于 2019-12-06 00:50:09
问题 I have an IIS 7.0 server setup with Media Services 4.0. I created a very simple html 5 page which containts a video with its source pointing to a *.ism file. Is it possible to play the video using the manifest of the ism file in html 5, like in silverlight? Here's the html code: <html> <body> <video width="640" height="480" src="myvideo.ism/Manifest" autoplay="true" controls="true">vid</video> </body> </html> Ryan 回答1: sorry, but that's not possible. there few supported formats: webm, ogv and

Jquery animation on Firefox 7.0.1 lags

故事扮演 提交于 2019-12-05 23:56:29
Does anyone know why this very simple jquery animation works perfectly in some browsers like Chrome and seems to be bugged in Firefox 7.0.1? Here's a link to the animation. If you try it in Firefox you'll see that the animation sometimes freezes then restarts. As you can see the code is very simple, only one animation, no images, and inline CSS. html: <div id="content" style="position: relative;width: 500px;height: 500px;overflow: hidden;"> <ul id="slider" style="position: absolute;top:0;left:0;"> <li style="background-color: red;height: 500px;width: 500px;list-style-type: none;"></li> <li

How to rotate a bitmap in Android about images center smoothly without oscillatory movement

杀马特。学长 韩版系。学妹 提交于 2019-12-05 05:39:35
I want to rotate a bitmap image based on user click by 10 deg. Following numerous stackoverflow and google answers, I tried various combinations of Matrix rotation. However the image doesn't really rotate as expected and gives a jittery view of rotation + oscillation about canvas center. To test I am increasing rotation angle by 10 deg (instead of clicks) each time object's draw method is called. The image is a symmetrical circle [64x64 enclosing rectangle] and I expect it to rotate at center of screen about it's own center like a wheel, but it rotates and moves diagonally towards right-down

android drag view smooth

限于喜欢 提交于 2019-12-04 16:28:24
问题 I have to drag some views on screen. I am modifying their position by changing left and top of their layout parameters from motion event on ACTION_MOVE from touch listener. Is there a way to "drag" items more smooth? Because tis kind of "dragging" is no smooth at all... Here is the code public boolean onTouch(View view, MotionEvent motionEvent) { switch (motionEvent.getAction()) { case MotionEvent.ACTION_DOWN: dx = (int) motionEvent.getX(); dy = (int) motionEvent.getY(); break; case

Azure and live streaming

久未见 提交于 2019-12-04 13:13:08
I'm trying to make a live video streaming with Azure but i realy don't know what i should try first. First, a have a web site with a latest version of Flowplayer on it. Now i need to know how to make a stream video from my web camera to Azure (what kind of software do i need)? I'm trying to use Expression Encoder 4 Pro (but it dosen't want to Stream video to Azure Blobs). Next step i need to know what i should to do on Azure? I mean some settings, maybe i should make a VM with IIS role on it, or just use a Blobs? And how to make it? And the last step is how to set up a Flowplayer to take