series

How do I find the millionth number in the series: 2 3 4 6 9 13 19 28 42 63 ... ?

It takes about minute to achieve 3000 in my comp but I need to know the millionth number in the series. The definition is recursive so I cannot see any shortcuts except to calculate everything before the millionth number. How can you fast calculate millionth number in the series? Series Def n_{i+1} = \floor{ 3/2 * n_{i} } and n_{0}=2....

Dynamically adding series to an MSCHART area.

I need to dynamically add series to an MSCHART ChartArea. I retrieve column names from a datatable. The series name needs to be the column name. I can build the SERIES ADD in a string, but then what? Series Trigger_Level = chart1.Series.Add("Trigger Level"); Developing in C# Please advise Bill ...

Flex Chart ColumnSet with dataFunction in ColumnSeries lead to a bug ?

Hi, I use Flex ColumnChart and set ColumnSeries in ColumnSet with dataFunction. The function I need is to change series by user interaction, so I add a button to pop series from myChart.series (actually I get a array = myChart.series, pop the series, and assign myChart.series = array). However, when I click this button, the last series...

What is the best/correct/most efficient way to store a data series in XML

I have an application which will store a series of (float) values in an XML file. There could be upwards of 100,000 values so I am interested in keeping the size down, but I also want files to be readily accessible by third parties. There seem to be various methods open to me as far as encoding the data within the XML: 1. <data> ...

How can I create a series of months to join sparse data to?

I think this is a pretty common issue, but I don't know what the process is called, so I'll describe it with an example. The concept is that I want to join a sparse dataset to a complete series, such as the days of the week, months of the year, or any ordered set (for example, for ranking). Empty positions in the sparse data will show as...

Silverlight 4 charting toolkit: how to create a custom series class?

I need to create a custom series class for the Silverlight 4 toolkit (April 2010 drop). There is a tutorial here: http://themechanicalbride.blogspot.com/2009/03/writing-your-own-silverlight-chart_25.html that references an older version of the framework. There have been enough changes that this doesn't work. Can anyone point me to sam...

Code that finds missing files in a series

Hello, I'm looking for a line of code that identifies missing files in a series of files and exports that list to a txt file. For example: a directory called 1to100000 contains pdfs named 1,2...99999,100000 but is missing some from the series. I would like the script to report those missing files to a txt file. Ideally this would be an ...

How to apply patches on the top of a git tree preventing duplication?

Hello everybody, I'm seeking advice for a problem that I thought to be simple, and it might be simple indeed by creating a small script, but I think there should already be a way to do that with git/quilt/stgit. I'm not exactly good at git and this is causing some issues to me. My problem: I've got a git tree (linux kernel) and a numbe...

How to cluster time series data using K-means algorithm?

Hi, I am wondering how can I do clustering of time series data. I understand if the data is a point. But I do not know how to cluster if the data is time series with 1XM where M is the data length. Especially the part on how to compute new mean of the cluster for time series data. My X matrix will be N X M where N is number of time ser...

R: Filling missing dates in a time series ???

Hello I have a zoo time series with missing days. In order to fill it and have a continuous series I do... I generate a chron date-time sequence from start to end. I merge my series with this one. I use na.locf to substitute NAs with las obsservation. I remove the syntetic chron sequence. Can I do same easier? Maybe with some index...

Fast Fourier Transform for Noisy Time Series Data

I've got a sample size of 180 data points. Its somewhat of a noisy sine wave. Trying to figure out the period / frequency of the data . Working in Xcode - read over the Accelerate framework but it seems very complex. Any suggestions on how to get the period / frequency of the data ? ...

Changing Default Colors of WPFToolkit Chart Control

Does anyone know how to or found any good examples of explicitly setting the color of the data points series when using the WPFToolkit chart control? I would like to set this as a style in my XAML. ...

1 + 1/2 + 1/3 + --- + 1/n = ?

Is there any formula for this series? I think it is a harmonic number in a form of sum(1/k) for k = 1 to n ...

What is the most efficient data structure to store time series of partially changing array?

Hi All, My problem is I have an array of objects of size N. after every time (t+1), some of the values of the array may or may not change. so lets say t+1 index 15 changes but everything else stays the same. What is the most efficient way to store something like this (in memory ) apart from just having an array of arrays of course? I w...

Excel - Getting a series in a chart to have different colours for each series item.

I use Excel 2007. I have 10 items: Col1, Col2 One, 1 Two, 7 Three, 45 Four, 2 etc When I make a bar chart the series is one colour, so each bar in the chart is the same colour. I would liek each bar in the chart to have a different colour, gradient or random.. I can do it bu switching the labels to be at the side, but i would like...

parallel calculation of infinite series

Hi All I just have a quick question, on how to speed up calculations of infinite series. This is just one of the examples: arctan(x) = x - x^3/3 + x^5/5 - x^7/7 + .... Lets say you have some library which allow you to work with big numbers, then first obvious solution would be to start adding/subtracting each element of the sequence u...

Getting BIP1350E error while trying to connect MQSI 2.1

BIP1350E: The current operation has timed out. One or more requests have been sent to the Configuration Manager to process the current operation, but no reply has been received for the last request sent. Either your request has queued up behind a long-running request by another user, or the Configuration Manager has stopped. Check th...

Generate series of 1,1,2,2,3,3,....

Hi all, I've an variable as page number (page) whose values increment by one each time. [Page numbering] But, now I need to customize this numbering to 1,1,2,2,3,3.. Can you suggest any formula for generate this kind of series? EDIT: (Answer) After playing with macros and VBA for some time I've figured out a way to generate this type...

Arima Arma Time series Models in Java

I am looking for Arima time series models in java.(Googling did not help) can anyone point to a resource where I can download Arima/Arma model codes made in java ...