Problem with a convolution algorithm

4 replies · 2K views · last reply
Uriel
Messages
16
Reaction score
0
Hi.

I've been reading "Statistical Mechanics Algorithms and Computations". And I came to a problem while processing Algorithm 1.26 (I attach a link at the end). I don't get why the weights are the way they are, specially I can't understand the sequence {1/2l,1/l,...,1/l,1/2l}.

Does anyone knows why the weights are those and how would be the sequence?

Thanks in advance

https://books.google.com.mx/books?id=g30SDAAAQBAJ&pg=PA47&lpg=PA47&dq=ran01-convolution&source=bl&ots=3kMGHo026k&sig=NYTpKGJiKJcHFai50vR0cLKw484&hl=en&sa=X&sqi=2&ved=0ahUKEwiF1O7IjMzQAhVJKGMKHdDvDhMQ6AEIGjAA#v=onepage&q=ran01-convolution&f=false
 
The weights are just those used by the trapezoidal method of numerical integration. It has nothing to do with the underlying problem.
 
Well it certainly isn't a great book when it comes to explain things.

Thank you very much