MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Step functions

  • To: mathgroup at
  • Subject: [mg17071] Re: Step functions
  • From: Jens-Peer Kuska <kuska at>
  • Date: Fri, 23 Apr 1999 02:32:10 -0400
  • Organization: Universitaet Leipzig
  • References: <7f9g05$>
  • Sender: owner-wri-mathgroup at

Hi Alessio,

the most elegant version is


Hope that helps

Alessio Massaro wrote:
> Can anyone help me to build a step function out of a series of {x,y} pairs?
> For ex.., consider an ordered random {x,y} series like
> data=Sort[Table[{Random[],Random[]}, {10}], First[#1]<First[#2]&]
> I would like to build a function f[ { {x1, y1}, {x2, y2}, ...}, x ], that
> evaluates to:

> Thanks and regards to everybody
> Alessio

  • Prev by Date: Re: numerical problem
  • Next by Date: Re: Step functions
  • Previous by thread: Re: Step functions
  • Next by thread: Display (was: psfix)