Description Usage Arguments Value Examples
View source: R/pi_projection.R
Generate a projection to the pi-subspace
1 | pi_projection(df_dim)
|
df_dim |
dimension matrix |
data frame for matched_inner()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ## Basic example
df_dim <-
tribble(
~rho, ~U, ~d, ~mu, ~dim,
1, 0, 0, 1, "M",
-3, 1, 1, -1, "L",
0, -1, 0, -1, "T"
)
df_pi_proj <-
pi_projection(df_dim)
df_target <-
tribble(
~rho, ~U, ~d, ~mu,
1.2, 10, 5, 1e-5,
1.2, 20, 5, 1e-5,
1.2, 10, 10, 1e-5,
1.2, 20, 10, 1e-5
)
matched_inner(df_pi_proj, df_target)
## Find basis orthogonal to given direction
df_dim2 <-
tribble(
~a, ~b, ~c, ~d, ~e, ~dim,
1, 1, 1, 1, 1, "L",
1, -1, 0, 0, 0, ""
)
df_pi_proj2 <-
pi_projection(df_dim2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.