pi_projection: Generate a projection to the pi-subspace

Description Usage Arguments Value Examples

View source: R/pi_projection.R

Description

Generate a projection to the pi-subspace

Usage

1
pi_projection(df_dim)

Arguments

df_dim

dimension matrix

Value

data frame for matched_inner()

Examples

 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)

zdelrosario/piMat documentation built on Jan. 2, 2020, 12:03 p.m.