@nakafa/aksara-contracts 8.16.0 → 8.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/visual/biology/ecosystem.d.ts +425 -0
- package/dist/visual/biology/ecosystem.js +140 -0
- package/dist/visual/biology/respiration.d.ts +286 -0
- package/dist/visual/biology/respiration.js +97 -0
- package/dist/visual/biology.d.ts +1371 -676
- package/dist/visual/biology.js +4 -0
- package/dist/visual/catalog.d.ts +2 -2
- package/dist/visual/mathematics/derivative.d.ts +425 -0
- package/dist/visual/mathematics/derivative.js +132 -0
- package/dist/visual/mathematics/integral.d.ts +428 -0
- package/dist/visual/mathematics/integral.js +146 -0
- package/dist/visual/mathematics/limit.d.ts +425 -0
- package/dist/visual/mathematics/limit.js +139 -0
- package/dist/visual/mathematics/linear.d.ts +425 -0
- package/dist/visual/mathematics/linear.js +140 -0
- package/dist/visual/mathematics/vector.d.ts +419 -0
- package/dist/visual/mathematics/vector.js +129 -0
- package/dist/visual/mathematics.d.ts +2260 -177
- package/dist/visual/mathematics.js +12 -1
- package/package.json +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, byPickedIds, cardFields, namesEach, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { answerAt, figure } from "#contracts/visual/entry";
|
|
4
|
+
/** A strictly positive finite bound for tolerance and window sliders. */
|
|
5
|
+
const PositiveSchema = Schema.Finite.check(Schema.isGreaterThan(0));
|
|
6
|
+
/** A positive slider whose minimum sits below its maximum. */
|
|
7
|
+
const PositiveSliderSchema = Schema.Struct({
|
|
8
|
+
max: PositiveSchema,
|
|
9
|
+
min: PositiveSchema,
|
|
10
|
+
value: PositiveSchema,
|
|
11
|
+
}).check(Schema.makeFilter(({ max, min, value }) => min < max && min <= value && value <= max, {
|
|
12
|
+
message: "Expected a positive slider range whose minimum is below its maximum, with the starting value between them.",
|
|
13
|
+
}));
|
|
14
|
+
/** A signed slider whose minimum sits below its maximum. */
|
|
15
|
+
const SignedSliderSchema = Schema.Struct({
|
|
16
|
+
max: Schema.Finite,
|
|
17
|
+
min: Schema.Finite,
|
|
18
|
+
value: Schema.Finite,
|
|
19
|
+
}).check(Schema.makeFilter(({ max, min, value }) => min < max && min <= value && value <= max, {
|
|
20
|
+
message: "Expected a slider range whose minimum is below its maximum, with the starting value between them.",
|
|
21
|
+
}));
|
|
22
|
+
const EPSILON_FUNCTIONS = [
|
|
23
|
+
"removableHole",
|
|
24
|
+
"quadraticSmooth",
|
|
25
|
+
"steepLinear",
|
|
26
|
+
];
|
|
27
|
+
const ASYMPTOTE_CURVES = [
|
|
28
|
+
"reciprocalPole",
|
|
29
|
+
"rationalHorizontal",
|
|
30
|
+
"obliqueSlant",
|
|
31
|
+
];
|
|
32
|
+
const SQUEEZE_ENVELOPES = [
|
|
33
|
+
"quadraticSine",
|
|
34
|
+
"linearDamped",
|
|
35
|
+
"sincEnvelope",
|
|
36
|
+
];
|
|
37
|
+
/**
|
|
38
|
+
* Props of `EpsilonDeltaBandLab`: a 3D coordinate frame illustrating the
|
|
39
|
+
* epsilon-delta limit definition with translucent horizontal epsilon and
|
|
40
|
+
* vertical delta corridors around a target point. Delta bound and limit
|
|
41
|
+
* verdict readouts are optional answer state.
|
|
42
|
+
*/
|
|
43
|
+
function epsilonDeltaBandLab(rich) {
|
|
44
|
+
return figure(Schema.Struct({
|
|
45
|
+
...cardFields(rich),
|
|
46
|
+
epsilon: PositiveSliderSchema,
|
|
47
|
+
functions: Schema.NonEmptyArray(Schema.Literals(EPSILON_FUNCTIONS)).check(Schema.isUnique()),
|
|
48
|
+
labels: Schema.Struct({
|
|
49
|
+
deltaBound: Schema.optionalKey(rich),
|
|
50
|
+
epsilon: TextSchema,
|
|
51
|
+
functionLabel: TextSchema,
|
|
52
|
+
functions: byPickedIds(EPSILON_FUNCTIONS, Schema.Struct({
|
|
53
|
+
formula: rich,
|
|
54
|
+
name: TextSchema,
|
|
55
|
+
})),
|
|
56
|
+
limitVerdict: Schema.optionalKey(rich),
|
|
57
|
+
parts: byIds(["curvePath", "epsilonBand", "deltaBand", "holePoint", "limitTarget"], TextSchema),
|
|
58
|
+
view: TextSchema,
|
|
59
|
+
}),
|
|
60
|
+
}).check(Schema.makeFilter(({ functions, labels }) => namesEach(functions, labels.functions), {
|
|
61
|
+
message: "Expected a name and formula for every epsilon-delta function shown, and no other.",
|
|
62
|
+
})), answerAt(["labels", "deltaBound"], ["labels", "limitVerdict"]));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Props of `AsymptoteBehaviorLab`: a 3D rational curve stage with vertical,
|
|
66
|
+
* horizontal, and oblique asymptote planes and left/right approach probes.
|
|
67
|
+
* Asymptote summary and approach value readouts are optional answer state.
|
|
68
|
+
*/
|
|
69
|
+
function asymptoteBehaviorLab(rich) {
|
|
70
|
+
return figure(Schema.Struct({
|
|
71
|
+
...cardFields(rich),
|
|
72
|
+
curves: Schema.NonEmptyArray(Schema.Literals(ASYMPTOTE_CURVES)).check(Schema.isUnique()),
|
|
73
|
+
labels: Schema.Struct({
|
|
74
|
+
approachValue: Schema.optionalKey(rich),
|
|
75
|
+
asymptoteSummary: Schema.optionalKey(rich),
|
|
76
|
+
curve: TextSchema,
|
|
77
|
+
curves: byPickedIds(ASYMPTOTE_CURVES, Schema.Struct({
|
|
78
|
+
formula: rich,
|
|
79
|
+
name: TextSchema,
|
|
80
|
+
})),
|
|
81
|
+
parts: byIds([
|
|
82
|
+
"curveBranches",
|
|
83
|
+
"verticalAsymptote",
|
|
84
|
+
"horizontalAsymptote",
|
|
85
|
+
"leftProbe",
|
|
86
|
+
"rightProbe",
|
|
87
|
+
], TextSchema),
|
|
88
|
+
probeX: TextSchema,
|
|
89
|
+
view: TextSchema,
|
|
90
|
+
}),
|
|
91
|
+
probeX: SignedSliderSchema,
|
|
92
|
+
}).check(Schema.makeFilter(({ curves, labels }) => namesEach(curves, labels.curves), {
|
|
93
|
+
message: "Expected a name and formula for every asymptote curve shown, and no other.",
|
|
94
|
+
})), answerAt(["labels", "asymptoteSummary"], ["labels", "approachValue"]));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Props of `SqueezeTheoremWaveLab`: a 3D oscillating wave trapped between an
|
|
98
|
+
* upper and lower envelope pinching cleanly to a single limit point as the
|
|
99
|
+
* window radius shrinks. Bound spread and squeezed limit readouts are optional
|
|
100
|
+
* answer state.
|
|
101
|
+
*/
|
|
102
|
+
function squeezeTheoremWaveLab(rich) {
|
|
103
|
+
return figure(Schema.Struct({
|
|
104
|
+
...cardFields(rich),
|
|
105
|
+
envelopes: Schema.NonEmptyArray(Schema.Literals(SQUEEZE_ENVELOPES)).check(Schema.isUnique()),
|
|
106
|
+
labels: Schema.Struct({
|
|
107
|
+
boundSpread: Schema.optionalKey(rich),
|
|
108
|
+
envelope: TextSchema,
|
|
109
|
+
envelopes: byPickedIds(SQUEEZE_ENVELOPES, Schema.Struct({
|
|
110
|
+
formula: rich,
|
|
111
|
+
name: TextSchema,
|
|
112
|
+
})),
|
|
113
|
+
parts: byIds([
|
|
114
|
+
"upperBound",
|
|
115
|
+
"lowerBound",
|
|
116
|
+
"squeezedWave",
|
|
117
|
+
"pinchPoint",
|
|
118
|
+
"windowFrame",
|
|
119
|
+
], TextSchema),
|
|
120
|
+
radius: TextSchema,
|
|
121
|
+
squeezedLimit: Schema.optionalKey(rich),
|
|
122
|
+
view: TextSchema,
|
|
123
|
+
}),
|
|
124
|
+
radius: PositiveSliderSchema,
|
|
125
|
+
}).check(Schema.makeFilter(({ envelopes, labels }) => namesEach(envelopes, labels.envelopes), {
|
|
126
|
+
message: "Expected a name and formula for every squeeze theorem envelope shown, and no other.",
|
|
127
|
+
})), answerAt(["labels", "boundSpread"], ["labels", "squeezedLimit"]));
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Limit calculus 3D labs covering epsilon-delta corridors, asymptote
|
|
131
|
+
* behavior, and the squeeze theorem.
|
|
132
|
+
*/
|
|
133
|
+
export function limitVisuals(rich) {
|
|
134
|
+
return {
|
|
135
|
+
AsymptoteBehaviorLab: asymptoteBehaviorLab(rich),
|
|
136
|
+
EpsilonDeltaBandLab: epsilonDeltaBandLab(rich),
|
|
137
|
+
SqueezeTheoremWaveLab: squeezeTheoremWaveLab(rich),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* Linear methods 3D labs covering eigen-transformations, principal component
|
|
5
|
+
* projection, and QR Gram-Schmidt orthogonalization.
|
|
6
|
+
*/
|
|
7
|
+
export declare function linearVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
EigenTransform3DLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
|
+
readonly description: RichSlot<E>;
|
|
10
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
11
|
+
readonly marks?: readonly [{
|
|
12
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
13
|
+
} | {
|
|
14
|
+
readonly attrs: {
|
|
15
|
+
readonly href: string;
|
|
16
|
+
};
|
|
17
|
+
readonly type: "link";
|
|
18
|
+
} | {
|
|
19
|
+
readonly attrs: {
|
|
20
|
+
readonly variant: "success" | "warning" | null;
|
|
21
|
+
};
|
|
22
|
+
readonly type: "highlight";
|
|
23
|
+
}, ...({
|
|
24
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
25
|
+
} | {
|
|
26
|
+
readonly attrs: {
|
|
27
|
+
readonly href: string;
|
|
28
|
+
};
|
|
29
|
+
readonly type: "link";
|
|
30
|
+
} | {
|
|
31
|
+
readonly attrs: {
|
|
32
|
+
readonly variant: "success" | "warning" | null;
|
|
33
|
+
};
|
|
34
|
+
readonly type: "highlight";
|
|
35
|
+
})[]];
|
|
36
|
+
readonly text: string;
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
} | {
|
|
39
|
+
readonly attrs: {
|
|
40
|
+
readonly latex: string;
|
|
41
|
+
};
|
|
42
|
+
readonly marks?: readonly [{
|
|
43
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
44
|
+
} | {
|
|
45
|
+
readonly attrs: {
|
|
46
|
+
readonly href: string;
|
|
47
|
+
};
|
|
48
|
+
readonly type: "link";
|
|
49
|
+
} | {
|
|
50
|
+
readonly attrs: {
|
|
51
|
+
readonly variant: "success" | "warning" | null;
|
|
52
|
+
};
|
|
53
|
+
readonly type: "highlight";
|
|
54
|
+
}, ...({
|
|
55
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
56
|
+
} | {
|
|
57
|
+
readonly attrs: {
|
|
58
|
+
readonly href: string;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "link";
|
|
61
|
+
} | {
|
|
62
|
+
readonly attrs: {
|
|
63
|
+
readonly variant: "success" | "warning" | null;
|
|
64
|
+
};
|
|
65
|
+
readonly type: "highlight";
|
|
66
|
+
})[]];
|
|
67
|
+
readonly type: "mathInline";
|
|
68
|
+
}, ...({
|
|
69
|
+
readonly marks?: readonly [{
|
|
70
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
71
|
+
} | {
|
|
72
|
+
readonly attrs: {
|
|
73
|
+
readonly href: string;
|
|
74
|
+
};
|
|
75
|
+
readonly type: "link";
|
|
76
|
+
} | {
|
|
77
|
+
readonly attrs: {
|
|
78
|
+
readonly variant: "success" | "warning" | null;
|
|
79
|
+
};
|
|
80
|
+
readonly type: "highlight";
|
|
81
|
+
}, ...({
|
|
82
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
83
|
+
} | {
|
|
84
|
+
readonly attrs: {
|
|
85
|
+
readonly href: string;
|
|
86
|
+
};
|
|
87
|
+
readonly type: "link";
|
|
88
|
+
} | {
|
|
89
|
+
readonly attrs: {
|
|
90
|
+
readonly variant: "success" | "warning" | null;
|
|
91
|
+
};
|
|
92
|
+
readonly type: "highlight";
|
|
93
|
+
})[]];
|
|
94
|
+
readonly text: string;
|
|
95
|
+
readonly type: "text";
|
|
96
|
+
} | {
|
|
97
|
+
readonly attrs: {
|
|
98
|
+
readonly latex: string;
|
|
99
|
+
};
|
|
100
|
+
readonly marks?: readonly [{
|
|
101
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
102
|
+
} | {
|
|
103
|
+
readonly attrs: {
|
|
104
|
+
readonly href: string;
|
|
105
|
+
};
|
|
106
|
+
readonly type: "link";
|
|
107
|
+
} | {
|
|
108
|
+
readonly attrs: {
|
|
109
|
+
readonly variant: "success" | "warning" | null;
|
|
110
|
+
};
|
|
111
|
+
readonly type: "highlight";
|
|
112
|
+
}, ...({
|
|
113
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
114
|
+
} | {
|
|
115
|
+
readonly attrs: {
|
|
116
|
+
readonly href: string;
|
|
117
|
+
};
|
|
118
|
+
readonly type: "link";
|
|
119
|
+
} | {
|
|
120
|
+
readonly attrs: {
|
|
121
|
+
readonly variant: "success" | "warning" | null;
|
|
122
|
+
};
|
|
123
|
+
readonly type: "highlight";
|
|
124
|
+
})[]];
|
|
125
|
+
readonly type: "mathInline";
|
|
126
|
+
})[]], E, never, never>>;
|
|
127
|
+
readonly title: RichSlot<E>;
|
|
128
|
+
readonly labels: Schema.Struct<{
|
|
129
|
+
readonly determinant: Schema.optionalKey<RichSlot<E>>;
|
|
130
|
+
readonly eigenvalues: Schema.optionalKey<RichSlot<E>>;
|
|
131
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["basisAxes", "transformedGrid", "eigenvectorOne", "eigenvectorTwo", "eigenvectorThree", "testVector"]>, Schema.Trimmed>;
|
|
132
|
+
readonly progress: Schema.Trimmed;
|
|
133
|
+
readonly transform: Schema.Trimmed;
|
|
134
|
+
readonly transforms: Schema.$Record<Schema.Literals<readonly ["stretchShear", "symmetricDiag", "reflectionScale", "anisotropic3D"]>, Schema.optionalKey<Schema.Struct<{
|
|
135
|
+
readonly formula: RichSlot<E>;
|
|
136
|
+
readonly name: Schema.Trimmed;
|
|
137
|
+
}>>>;
|
|
138
|
+
readonly view: Schema.Trimmed;
|
|
139
|
+
}>;
|
|
140
|
+
readonly progress: Schema.Struct<{
|
|
141
|
+
readonly max: Schema.Finite;
|
|
142
|
+
readonly min: Schema.Finite;
|
|
143
|
+
readonly value: Schema.Finite;
|
|
144
|
+
}>;
|
|
145
|
+
readonly transforms: Schema.NonEmptyArray<Schema.Literals<readonly ["stretchShear", "symmetricDiag", "reflectionScale", "anisotropic3D"]>>;
|
|
146
|
+
}>, "figure">;
|
|
147
|
+
PcaProjection3DLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
148
|
+
readonly description: RichSlot<E>;
|
|
149
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
150
|
+
readonly marks?: readonly [{
|
|
151
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
152
|
+
} | {
|
|
153
|
+
readonly attrs: {
|
|
154
|
+
readonly href: string;
|
|
155
|
+
};
|
|
156
|
+
readonly type: "link";
|
|
157
|
+
} | {
|
|
158
|
+
readonly attrs: {
|
|
159
|
+
readonly variant: "success" | "warning" | null;
|
|
160
|
+
};
|
|
161
|
+
readonly type: "highlight";
|
|
162
|
+
}, ...({
|
|
163
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
164
|
+
} | {
|
|
165
|
+
readonly attrs: {
|
|
166
|
+
readonly href: string;
|
|
167
|
+
};
|
|
168
|
+
readonly type: "link";
|
|
169
|
+
} | {
|
|
170
|
+
readonly attrs: {
|
|
171
|
+
readonly variant: "success" | "warning" | null;
|
|
172
|
+
};
|
|
173
|
+
readonly type: "highlight";
|
|
174
|
+
})[]];
|
|
175
|
+
readonly text: string;
|
|
176
|
+
readonly type: "text";
|
|
177
|
+
} | {
|
|
178
|
+
readonly attrs: {
|
|
179
|
+
readonly latex: string;
|
|
180
|
+
};
|
|
181
|
+
readonly marks?: readonly [{
|
|
182
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
183
|
+
} | {
|
|
184
|
+
readonly attrs: {
|
|
185
|
+
readonly href: string;
|
|
186
|
+
};
|
|
187
|
+
readonly type: "link";
|
|
188
|
+
} | {
|
|
189
|
+
readonly attrs: {
|
|
190
|
+
readonly variant: "success" | "warning" | null;
|
|
191
|
+
};
|
|
192
|
+
readonly type: "highlight";
|
|
193
|
+
}, ...({
|
|
194
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
195
|
+
} | {
|
|
196
|
+
readonly attrs: {
|
|
197
|
+
readonly href: string;
|
|
198
|
+
};
|
|
199
|
+
readonly type: "link";
|
|
200
|
+
} | {
|
|
201
|
+
readonly attrs: {
|
|
202
|
+
readonly variant: "success" | "warning" | null;
|
|
203
|
+
};
|
|
204
|
+
readonly type: "highlight";
|
|
205
|
+
})[]];
|
|
206
|
+
readonly type: "mathInline";
|
|
207
|
+
}, ...({
|
|
208
|
+
readonly marks?: readonly [{
|
|
209
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
210
|
+
} | {
|
|
211
|
+
readonly attrs: {
|
|
212
|
+
readonly href: string;
|
|
213
|
+
};
|
|
214
|
+
readonly type: "link";
|
|
215
|
+
} | {
|
|
216
|
+
readonly attrs: {
|
|
217
|
+
readonly variant: "success" | "warning" | null;
|
|
218
|
+
};
|
|
219
|
+
readonly type: "highlight";
|
|
220
|
+
}, ...({
|
|
221
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
222
|
+
} | {
|
|
223
|
+
readonly attrs: {
|
|
224
|
+
readonly href: string;
|
|
225
|
+
};
|
|
226
|
+
readonly type: "link";
|
|
227
|
+
} | {
|
|
228
|
+
readonly attrs: {
|
|
229
|
+
readonly variant: "success" | "warning" | null;
|
|
230
|
+
};
|
|
231
|
+
readonly type: "highlight";
|
|
232
|
+
})[]];
|
|
233
|
+
readonly text: string;
|
|
234
|
+
readonly type: "text";
|
|
235
|
+
} | {
|
|
236
|
+
readonly attrs: {
|
|
237
|
+
readonly latex: string;
|
|
238
|
+
};
|
|
239
|
+
readonly marks?: readonly [{
|
|
240
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
241
|
+
} | {
|
|
242
|
+
readonly attrs: {
|
|
243
|
+
readonly href: string;
|
|
244
|
+
};
|
|
245
|
+
readonly type: "link";
|
|
246
|
+
} | {
|
|
247
|
+
readonly attrs: {
|
|
248
|
+
readonly variant: "success" | "warning" | null;
|
|
249
|
+
};
|
|
250
|
+
readonly type: "highlight";
|
|
251
|
+
}, ...({
|
|
252
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
253
|
+
} | {
|
|
254
|
+
readonly attrs: {
|
|
255
|
+
readonly href: string;
|
|
256
|
+
};
|
|
257
|
+
readonly type: "link";
|
|
258
|
+
} | {
|
|
259
|
+
readonly attrs: {
|
|
260
|
+
readonly variant: "success" | "warning" | null;
|
|
261
|
+
};
|
|
262
|
+
readonly type: "highlight";
|
|
263
|
+
})[]];
|
|
264
|
+
readonly type: "mathInline";
|
|
265
|
+
})[]], E, never, never>>;
|
|
266
|
+
readonly title: RichSlot<E>;
|
|
267
|
+
readonly correlation: Schema.Struct<{
|
|
268
|
+
readonly max: Schema.Finite;
|
|
269
|
+
readonly min: Schema.Finite;
|
|
270
|
+
readonly value: Schema.Finite;
|
|
271
|
+
}>;
|
|
272
|
+
readonly labels: Schema.Struct<{
|
|
273
|
+
readonly correlation: Schema.Trimmed;
|
|
274
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["pointCloud", "pc1Axis", "pc2Axis", "pc3Axis", "projectionPlane", "residualLines"]>, Schema.Trimmed>;
|
|
275
|
+
readonly reconstructionError: Schema.optionalKey<RichSlot<E>>;
|
|
276
|
+
readonly subspace: Schema.Trimmed;
|
|
277
|
+
readonly subspaces: Schema.$Record<Schema.Literals<readonly ["pc1Line", "pc1Pc2Plane", "full3D"]>, Schema.optionalKey<Schema.Struct<{
|
|
278
|
+
readonly name: Schema.Trimmed;
|
|
279
|
+
readonly summary: RichSlot<E>;
|
|
280
|
+
}>>>;
|
|
281
|
+
readonly varianceExplained: Schema.optionalKey<RichSlot<E>>;
|
|
282
|
+
readonly view: Schema.Trimmed;
|
|
283
|
+
}>;
|
|
284
|
+
readonly subspaces: Schema.NonEmptyArray<Schema.Literals<readonly ["pc1Line", "pc1Pc2Plane", "full3D"]>>;
|
|
285
|
+
}>, "figure">;
|
|
286
|
+
QrGramSchmidt3DLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
287
|
+
readonly description: RichSlot<E>;
|
|
288
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
289
|
+
readonly marks?: readonly [{
|
|
290
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
291
|
+
} | {
|
|
292
|
+
readonly attrs: {
|
|
293
|
+
readonly href: string;
|
|
294
|
+
};
|
|
295
|
+
readonly type: "link";
|
|
296
|
+
} | {
|
|
297
|
+
readonly attrs: {
|
|
298
|
+
readonly variant: "success" | "warning" | null;
|
|
299
|
+
};
|
|
300
|
+
readonly type: "highlight";
|
|
301
|
+
}, ...({
|
|
302
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
303
|
+
} | {
|
|
304
|
+
readonly attrs: {
|
|
305
|
+
readonly href: string;
|
|
306
|
+
};
|
|
307
|
+
readonly type: "link";
|
|
308
|
+
} | {
|
|
309
|
+
readonly attrs: {
|
|
310
|
+
readonly variant: "success" | "warning" | null;
|
|
311
|
+
};
|
|
312
|
+
readonly type: "highlight";
|
|
313
|
+
})[]];
|
|
314
|
+
readonly text: string;
|
|
315
|
+
readonly type: "text";
|
|
316
|
+
} | {
|
|
317
|
+
readonly attrs: {
|
|
318
|
+
readonly latex: string;
|
|
319
|
+
};
|
|
320
|
+
readonly marks?: readonly [{
|
|
321
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
322
|
+
} | {
|
|
323
|
+
readonly attrs: {
|
|
324
|
+
readonly href: string;
|
|
325
|
+
};
|
|
326
|
+
readonly type: "link";
|
|
327
|
+
} | {
|
|
328
|
+
readonly attrs: {
|
|
329
|
+
readonly variant: "success" | "warning" | null;
|
|
330
|
+
};
|
|
331
|
+
readonly type: "highlight";
|
|
332
|
+
}, ...({
|
|
333
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
334
|
+
} | {
|
|
335
|
+
readonly attrs: {
|
|
336
|
+
readonly href: string;
|
|
337
|
+
};
|
|
338
|
+
readonly type: "link";
|
|
339
|
+
} | {
|
|
340
|
+
readonly attrs: {
|
|
341
|
+
readonly variant: "success" | "warning" | null;
|
|
342
|
+
};
|
|
343
|
+
readonly type: "highlight";
|
|
344
|
+
})[]];
|
|
345
|
+
readonly type: "mathInline";
|
|
346
|
+
}, ...({
|
|
347
|
+
readonly marks?: readonly [{
|
|
348
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
349
|
+
} | {
|
|
350
|
+
readonly attrs: {
|
|
351
|
+
readonly href: string;
|
|
352
|
+
};
|
|
353
|
+
readonly type: "link";
|
|
354
|
+
} | {
|
|
355
|
+
readonly attrs: {
|
|
356
|
+
readonly variant: "success" | "warning" | null;
|
|
357
|
+
};
|
|
358
|
+
readonly type: "highlight";
|
|
359
|
+
}, ...({
|
|
360
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
361
|
+
} | {
|
|
362
|
+
readonly attrs: {
|
|
363
|
+
readonly href: string;
|
|
364
|
+
};
|
|
365
|
+
readonly type: "link";
|
|
366
|
+
} | {
|
|
367
|
+
readonly attrs: {
|
|
368
|
+
readonly variant: "success" | "warning" | null;
|
|
369
|
+
};
|
|
370
|
+
readonly type: "highlight";
|
|
371
|
+
})[]];
|
|
372
|
+
readonly text: string;
|
|
373
|
+
readonly type: "text";
|
|
374
|
+
} | {
|
|
375
|
+
readonly attrs: {
|
|
376
|
+
readonly latex: string;
|
|
377
|
+
};
|
|
378
|
+
readonly marks?: readonly [{
|
|
379
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
380
|
+
} | {
|
|
381
|
+
readonly attrs: {
|
|
382
|
+
readonly href: string;
|
|
383
|
+
};
|
|
384
|
+
readonly type: "link";
|
|
385
|
+
} | {
|
|
386
|
+
readonly attrs: {
|
|
387
|
+
readonly variant: "success" | "warning" | null;
|
|
388
|
+
};
|
|
389
|
+
readonly type: "highlight";
|
|
390
|
+
}, ...({
|
|
391
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
392
|
+
} | {
|
|
393
|
+
readonly attrs: {
|
|
394
|
+
readonly href: string;
|
|
395
|
+
};
|
|
396
|
+
readonly type: "link";
|
|
397
|
+
} | {
|
|
398
|
+
readonly attrs: {
|
|
399
|
+
readonly variant: "success" | "warning" | null;
|
|
400
|
+
};
|
|
401
|
+
readonly type: "highlight";
|
|
402
|
+
})[]];
|
|
403
|
+
readonly type: "mathInline";
|
|
404
|
+
})[]], E, never, never>>;
|
|
405
|
+
readonly title: RichSlot<E>;
|
|
406
|
+
readonly labels: Schema.Struct<{
|
|
407
|
+
readonly orthogonalityCheck: Schema.optionalKey<RichSlot<E>>;
|
|
408
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["inputVectors", "orthonormalBasis", "projectionShadow", "orthogonalFrame", "unitSphere"]>, Schema.Trimmed>;
|
|
409
|
+
readonly rEntries: Schema.optionalKey<RichSlot<E>>;
|
|
410
|
+
readonly skew: Schema.Trimmed;
|
|
411
|
+
readonly step: Schema.Trimmed;
|
|
412
|
+
readonly steps: Schema.$Record<Schema.Literals<readonly ["originalBasis", "normalizeQ1", "orthogonalizeQ2", "orthogonalizeQ3"]>, Schema.optionalKey<Schema.Struct<{
|
|
413
|
+
readonly name: Schema.Trimmed;
|
|
414
|
+
readonly summary: RichSlot<E>;
|
|
415
|
+
}>>>;
|
|
416
|
+
readonly view: Schema.Trimmed;
|
|
417
|
+
}>;
|
|
418
|
+
readonly skew: Schema.Struct<{
|
|
419
|
+
readonly max: Schema.Finite;
|
|
420
|
+
readonly min: Schema.Finite;
|
|
421
|
+
readonly value: Schema.Finite;
|
|
422
|
+
}>;
|
|
423
|
+
readonly steps: Schema.NonEmptyArray<Schema.Literals<readonly ["originalBasis", "normalizeQ1", "orthogonalizeQ2", "orthogonalizeQ3"]>>;
|
|
424
|
+
}>, "figure">;
|
|
425
|
+
};
|