Linked Questions

14 votes
3 answers

TimeSeries interpolation with time gap awareness

Is there an option for ResamplingMethod (or any other practical way) for specifying different behaviours of the interpolation, depending on, for instance, closest dates (on the ...
P. Fonseca's user avatar
  • 6,665
14 votes
4 answers

Fast Selections Testing on Inequality

Is there a functional idiom for fast selections testing on inequality? For example, finding values from list a & b where the key is less than or equal to a value, in this case 4 or 9. An ...
Chris Degnen's user avatar
  • 30.9k
8 votes
2 answers

Best way to insert element into an ordered list at the correct position?

Suppose I have an ordered list orderedList and I want to write some code that will involve regularly inserting new elements into ...
WillG's user avatar
  • 960
10 votes
2 answers

How to parallelize and speedup AppendTo? [duplicate]

Say I have a list of original data (for now generating random list as follows): ...
string's user avatar
  • 167
14 votes
2 answers

the more effective method to find 21 digits armstrong number

In recreational number theory, a narcissistic number (also known as a pluperfect digital invariant (PPDI), an Armstrong number(after Michael F. Armstrong) or a plus perfect number) is a number that is ...
Apple's user avatar
  • 3,663
4 votes
4 answers

Extracting elements in a list based on conditions [closed]

I have the list \[ScriptCapitalD] = {824, 1082, 1135, 1308, 1359, 1372, 1401, 1412, 1601, 1638, 1641, 1674, 1709, 1805, 1947, 2208} I would like to ...
Physkid's user avatar
  • 680
5 votes
4 answers

Inserting an integer into a sorted list

I'm wondering if inserting an integer into a sorted list (in a way that the list remains sorted) can be performed in Mathematica in some fancy way in $\log(N)$ time?.. The question was asked here, ...
mavzolej's user avatar
  • 693
9 votes
3 answers

Improving selection of elements from large multidimensional array

Frequently in my profession I deal with large arrays of data. Typically these are mixed types including integers, strings, dates, and reals. To recreate a typical data array: ...
kale's user avatar
  • 10.9k
2 votes
4 answers

Find time since last 0 in list

When I have a list of data (measured per day), is it possible to define a function that gives the nr of days since the data has been 0? I tried working withPosition...
Wiebe's user avatar
  • 167
2 votes
3 answers

How to deal with this list problem?

Now, I want to write a function for some kind of list. The input list includes many integers. Take a simple example for f[x], ...
Orders's user avatar
  • 1,247

15 30 50 per page