s_mN: Computing linear segments for a specified error norm value.

Description Usage Arguments Value

Description

Subroutine to determine the Linear SEGMENTS for a PREDEFINED NUMBER OF SEGMENTS (NR) (Use this program when you want to predefine the number of segments you want to fit to the data) Segments the data in x,y into the intervals given in the output array A. The data in each interval can be linearly fitted within an error, given by r2b(), less than eps.

Usage

1
s_mN(nr, x, y)

Arguments

nr

[integer] number of segments, fixed.

x

[real] input x-axis array, should be an increasing function of index

y

[real] input y-axis array

Value

[list(eps=eps,ni=ni)] where: eps [real] is the maximum error over all intervals, ni is a [vector of integer, length nr+1] vector Ni of indices giving data segments Ni[i] start of interval; Ni[i+1] end of interval, for any i<length(Ni)


boshek/limnotools documentation built on May 13, 2019, 12:36 a.m.