Skip to content

Commit

Permalink
rewrite some awkward phrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Es committed Nov 22, 2021
1 parent c07a843 commit 50a137b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ _SwiftSeriesResampler_ is part of the [OpenAlloc](https://github.com/openalloc)

## SeriesResampler

This example shows resampling market value data in a time series from 5 *non-uniform* intervals to 8 *uniform intervals* in the target coordinate space, as depicted in the charts.
This example shows the resampling of market value data in a time series from 5 *non-uniform* intervals to 8 *uniform intervals* in the target, as depicted in the charts.

<img src="https://github.com/openalloc/SwiftSeriesResampler/blob/main/Images/example.png" width="1149" height="397"/>

Expand Down Expand Up @@ -92,15 +92,15 @@ Computed properties are lazy, meaning that they are only calculated when first n

- `var relativeDistances: [T]` - `xVal` distances from first `xVal`. The first is `0`. The last is equal to `horizontalExtent`.

- `var targetInterval: T` - The width of each interval in the resampled coordinate space.
- `var targetInterval: T` - The width of each interval between the resampled coordinates.

- `var targetStride: [T]` - x-axis coordinates in the resampled coordinate space, as a stride object.
- `var targetStride: [T]` - The resampled x-axis coordinates, as a stride object. They are uniformly-spaced.

- `var targetVals: [T]` - x-axis coordinates in the resampled coordinate space, as an array object.
- `var targetVals: [T]` - The resampled x-axis coordinates, as an array object. They are uniformly-spaced.

#### Instance Methods

- `func resample(yVals: [T]) -> [T]` - resample the specified array of y-coordinate values for the original `xVals` provided when initializing the resampler. Returns `targetCount` y-coordinate values in the target coordinate space.
- `func resample(yVals: [T]) -> [T]` - Resample the specified array of y-coordinate values for the original `xVals` provided when initializing the resampler. Returns `targetCount` resampled y-coordinate values.

## See Also

Expand Down

0 comments on commit 50a137b

Please sign in to comment.