Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions _feidmath/feidmath_.sc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TESTED: Microsoft Excel 365 v2304
---- INTERPOLATION ----
*/

// NONE ---> INTERPOLATION_LINEAR
// NONE ---> _INTERPOLATION_LINEAR
_INTERPOLATION_LINEAR = LAMBDA(x, known_ys, known_xs,
LET(
known_xs, TOCOL(known_xs),
Expand Down Expand Up @@ -43,13 +43,13 @@ _INTERPOLATION_LINEAR = LAMBDA(x, known_ys, known_xs,
)
);

// _INTERPOLATION_LINEAR ---> INTERPOLATION_LINEAR_VECTOR
INTERPOLATION_LINEAR = LAMBDA(x_vector, known_y, known_x,
// _INTERPOLATION_LINEAR ---> INTERPOLATION_LINEAR
INTERPOLATION_LINEAR = LAMBDA(x_vector, known_ys, known_xs,
LET(
x_vector, TOCOL(x_vector),
y_vector, BYROW(
x_vector,
LAMBDA(x, _INTERPOLATION_LINEAR(x, known_y, known_x))
LAMBDA(x, _INTERPOLATION_LINEAR(x, known_ys, known_xs))
),
y_vector
)
Expand Down Expand Up @@ -199,7 +199,7 @@ LINALG_ROTATE_POINT_ARRAY = LAMBDA(
---- GEOMETRY ----
*/

// NONE ---> GEOMETRY_POINT_IN_POLYGON
// NONE ---> GEOMETRY_IS_POINT_IN_POLYGON
GEOMETRY_IS_POINT_IN_POLYGON = LAMBDA(point_vector, data_polygon,
LET(
point_vector, TOCOL(point_vector),
Expand Down Expand Up @@ -230,4 +230,4 @@ GEOMETRY_ARE_POINTS_IN_POLYGON = LAMBDA(data_points, polygon_points,
data_points,
LAMBDA(row, GEOMETRY_IS_POINT_IN_POLYGON(row, polygon_points))
)
);
);
2 changes: 1 addition & 1 deletion _feidmath/feidmath_GEOMETRY.sc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NONE ---> GEOMETRY_POINT_IN_POLYGON
// NONE ---> GEOMETRY_IS_POINT_IN_POLYGON
GEOMETRY_IS_POINT_IN_POLYGON = LAMBDA(point_vector, data_polygon,
LET(
point_vector, TOCOL(point_vector),
Expand Down
8 changes: 4 additions & 4 deletions _feidmath/feidmath_INTERPOLATION.sc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NONE ---> INTERPOLATION_LINEAR
// NONE ---> _INTERPOLATION_LINEAR
_INTERPOLATION_LINEAR = LAMBDA(x, known_ys, known_xs,
LET(
known_xs, TOCOL(known_xs),
Expand Down Expand Up @@ -27,13 +27,13 @@ _INTERPOLATION_LINEAR = LAMBDA(x, known_ys, known_xs,
)
);

// _INTERPOLATION_LINEAR ---> INTERPOLATION_LINEAR_VECTOR
INTERPOLATION_LINEAR = LAMBDA(x_vector, known_y, known_x,
// _INTERPOLATION_LINEAR ---> INTERPOLATION_LINEAR
INTERPOLATION_LINEAR = LAMBDA(x_vector, known_ys, known_xs,
LET(
x_vector, TOCOL(x_vector),
y_vector, BYROW(
x_vector,
LAMBDA(x, _INTERPOLATION_LINEAR(x, known_y, known_x))
LAMBDA(x, _INTERPOLATION_LINEAR(x, known_ys, known_xs))
),
y_vector
)
Expand Down
4 changes: 2 additions & 2 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ anchor-sections: false
https://gist.github.com/taruma/b4df638ecb7af48ab63691951481d6b2
```

### feidlambda v0.3.x
### feidmath v0.1.x

```default
https://gist.github.com/taruma/92bd33600a3d42dc9aead87558404a12
https://gist.github.com/taruma/8b0978227dffbee50c3a9d56e31d34f3
```

---
Expand Down
Loading