Linked Questions

2
votes
4answers
249 views

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...
9
votes
3answers
627 views

ListPlot InterpolationOrder->0 datapoint centered

it is possible to get a histogram style in ListPlot using InterpolationOrder->0 ...
5
votes
3answers
293 views

How to complete function which is not defined for all interval

I have a function testF22 like this ...
3
votes
3answers
435 views

Mathematica equivalent to gnuplot's fsteps option?

In a ListLinePlot I can set InterpolationOrder -> 0 to get the equivalent of gnuplot's ...
3
votes
3answers
314 views

Zero-order interpolation not going fully around

Connected to this question, I want to do a zero-order interpolation of a bunch of datapoints which is periodic. The code I use is as follows: ...
3
votes
3answers
1k views

For-loop not working as I expect

I want to do this: When 10 <= t < 130, give t -> 1; When 130 <= t<300, give <...
6
votes
2answers
306 views

Adding a piece-wise function and its shifted version by list manipulations

I have a piecewise function represented by two lists, x= {0, 30, 60, 120, 150, 180}; y= {0, 1, 0, -1, 0}; and the plot of this function is . Now I would like ...
3
votes
2answers
73 views

Insert two random time points to data

I have a data as following. I want to add two random time points, one for birth one for death. ...
1
vote
2answers
93 views
1
vote
2answers
132 views

How to interpolate my results at discrete steps? [closed]

I have the results ...
23
votes
1answer
2k views

Gillespie Stochastic Simulation Algorithm

The Gillespie SSA is a Monte Carlo stochastic simulation algorithm to find the trajectory of a dynamic system described by a reaction (or interaction) network, e.g. chemical reactions or ecological ...
10
votes
1answer
1k views

Is there a built-in function to do binary search?

Is there a built-in function to do binary search? Say, given a list (sorted) and a number, find the position which keeps the listed sorted when the number is inserted. I know that ...
3
votes
1answer
1k views

List plot joined with stair steps instead of diagonal lines

What's a simple way to plot a list of points so that they're joined with stair steps instead of straight lines between the points? I'd imagine something like... ...
1
vote
1answer
457 views

Step plot with log-log scale

Anyone know how to impose a log scale on both the $x$ and $y$ axes after using ListStepPlot? There's nothing special about the data set I've used, just a list of ...
0
votes
1answer
96 views

How can I change the behaviour of InterpolationOrder -> 0? [duplicate]

Consider the following example: ...

15 30 50 per page