You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Describe Request
Net Present Value (NPV) added.
# Change Type
Valuation algorithm.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- New Features
- Added Net Present Value (NPV) calculation to the valuation toolkit.
- Documentation
- Updated main and valuation guides to include NPV explanations and
formula.
- Expanded helper documentation with additional utilities and updated
index/anchors.
- No behavioral or API changes beyond the new valuation capability.
- Tests
- Added comprehensive unit tests and dataset coverage for NPV to ensure
accuracy.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
funcSlicesReverse[T any](r []T, i int, f func(T) bool)
1037
+
```
1038
+
1039
+
SlicesReverse loops through a slice in reverse order starting from the given index. The given function is called for each element in the slice. If the function returns false, the loop is terminated.
funcWindow[T any](c <-chanT, f func([]T, int) T, w int) <-chanT
1099
+
```
1100
+
1101
+
Window returns a channel that emits the passed function result within a sliding window of size w from the input channel c. Note: the slice is in the same order than in source channel but the 1st element may not be 0, use modulo window size if order is important.
1102
+
1043
1103
<aname="Bst"></a>
1044
1104
## type [Bst](<https://github.com/cinar/indicator/blob/master/helper/bst.go#L15-L17>)
0 commit comments