Options

# Slope Function?

Ghostrider
Member Posts:

**60**Contributor II
in Help

Is there a function in RapidMiner TimeSeries library which can return the slope from the given point to previous point? I searched, doesn't look like it.

0

## Answers

458UnicornIt could be that the "Extract Linear Coefficients" operator might do the job as well as "Extract Linear Coeeficients (Piecewise)". But it can be difficult to be sure.

regards

Andrew

60Contributor II458UnicornIf I get time, I will try and isolate the issue and post what I get.

Andrew

60Contributor II458UnicornWell that was hard work. I've chopped a long wavelength sine wave into 4 bits and found the slope of each and it looks right.

I think you will have trouble using it but here it is. regards

Andrew

60Contributor II458UnicornThe output from my previous process is an example set - a small one - but an example set nonetheless. It's not obvious how it relates to the input data so I can imagine it's hard to use.

You can use the differentiate operator for series and I've shown an example that does this. The example set contains the original data and its differential at the same point. Not sure it it helps and I think I agree with you that R is the way to go regards

Andrew

60Contributor IIy = 3*x - x[n-1] - x[n-2] - x[n-3]

458UnicornAndrew

60Contributor II