← Back to worldbuilding

Worldbuilding

OC Transform Theory

The mapping and transformation mechanism from real-world Creator traits to two-dimensional OC traits.

This chapter systematically presents OC Transform Theory, covering both continuous and discrete models. This theory explains the mapping and transformation mechanism from real-world individual traits to the traits of a two-dimensional Original Character (OC), and serves as the theoretical foundation of Creator-OC transformation in this worldview.

Feature Vector Function and Feature Vector Sequence

Self-Insert OC and OC

In the OC community, the Creator is the individual in the real world, and the Original Character (OC) is the fictional character in the two-dimensional world. Through creating settings, drawing appearances, writing stories, and other means, the Creator gives the OC its unique traits.

However, the relation between Creator and OC is not a simple one-to-one mapping: one Creator may create multiple OCs. But a Creator may create a Self-Insert OC, that is, an OC that in some sense represents the Creator themself. A Self-Insert OC usually carries the Creator’s idealized image, emotional projection, or self-expression.

Therefore, there is a much tighter trait relation between a Self-Insert OC and the Creator, and this relation can be quantified through OC Transform Theory. In other words, an OC Transform is in fact the mapping process from the Creator’s traits to the traits of their Self-Insert OC. All OCs are related to the Creator’s traits, but only the traits of a Self-Insert OC directly reflect the properties of the Creator.

For a Creator, as long as an OC exists, an OC Transform can be carried out mathematically; but for an OC, only when it is a Self-Insert OC is the OC Transform physically realized in WeiKnight’s worldview.

Definitions of Feature Vector Function and Feature Vector Sequence

Any character, whether a real-world individual or a fictional figure in a two-dimensional world, can be completely described by a set of features. These features form the character’s “identity fingerprint,” uniquely representing the character’s core properties. In the real world, such features may include physiological traits (such as height and weight), psychological traits (such as personality tendencies and emotional states), social traits (such as occupation and interpersonal relations), and so on; in the two-dimensional world, the character’s traits may instead take the form of more abstract artistic properties (such as moe attributes, character settings, plot functions, and so on).

In order to establish a unified mathematical framework for describing the evolution of character traits, we introduce the concept of the Feature Vector. At any given moment, the state of a character can be represented by a multidimensional vector, where each component corresponds to a particular feature attribute. This representation can capture not only the static traits of a character, but also the dynamic process by which those traits change over time.

Based on this idea, we define the following unified framework of the Feature Vector Function and the Feature Vector Sequence.

Feature Vector Function

Suppose the features of the real world are described by NN quantifiable attributes, and the features of an OC are described by MM abstract attributes.

The real-world Feature Vector Function (Real-world Feature Vector Function) is the NN-dimensional column vector:

r(t)=[r1(t),r2(t),,rN(t)]T,\mathbf{r}(t)=\bigl[r_1(t),\,r_2(t),\,\dots,\,r_N(t)\bigr]^{\mathsf{T}},

where the component ri(t)r_i(t) is a quantifiable real-world attribute varying continuously with time.

The OC Feature Vector Function is the MM-dimensional column vector:

q(t)=[q1(t),q2(t),,qM(t)]T,\mathbf{q}(t)=\bigl[q_1(t),\,q_2(t),\,\dots,\,q_M(t)\bigr]^{\mathsf{T}},

where the component qj(t)q_j(t) represents an abstract attribute of the OC varying continuously with time.

Sampling a continuous signal at interval TsT_s yields a discrete sequence, namely the Feature Vector Sequence.

Feature Vector Sequence

The real-world Feature Vector Sequence (Real-world Feature Vector Sequence) is the NN-dimensional column vector:

r[n]=[r1[n],r2[n],,rN[n]]T,nZ,\mathbf{r}[n]=\bigl[r_1[n],\,r_2[n],\,\dots,\,r_N[n]\bigr]^{\mathsf{T}},\quad n\in\mathbb{Z},

where ri[n]=ri(nTs)r_i[n]=r_i(nT_s) is the sampled discrete sequence component.

The OC Feature Vector Sequence (OC Feature Vector Sequence) is the MM-dimensional column vector:

q[n]=[q1[n],q2[n],,qM[n]]T,nZ,\mathbf{q}[n]=\bigl[q_1[n],\,q_2[n],\,\dots,\,q_M[n]\bigr]^{\mathsf{T}},\quad n\in\mathbb{Z},

where qj[n]=qj(nTs)q_j[n]=q_j(nT_s) is the sampled discrete sequence component.

The components ri(t)r_i(t), qj(t)q_j(t), ri[n]r_i[n], and qj[n]q_j[n] of these functions or sequences are all real-valued functions or sequences, and are causal, that is, zero for t<0t<0 or n<0n<0. This assumption of causality reflects the directionality of time in the evolution of character traits: changes in traits may depend only on the present and past states, but not on future information.

Continuous-Time OC Transform

In the real world, the traits of an individual vary continuously over time; the traits of a two-dimensional OC do as well. Therefore, the Continuous-Time OC Transform is the most natural model.

Time-Domain Description

Time-Domain Description of the Continuous-Time OC Transform

The Continuous-Time OC Transform is realized by a multi-input multi-output continuous LTI system, whose input-output relation is given by the convolution integral

q(t)=H(τ)r(tτ)dτ=H(t)r(t),\mathbf{q}(t)=\int_{-\infty}^{\infty}\mathbf{H}(\tau)\mathbf{r}(t-\tau)\,\mathrm{d}\tau = \mathbf{H}(t)*\mathbf{r}(t),

where

H(τ)=[h11(τ)h12(τ)h1N(τ)h21(τ)h22(τ)h2N(τ)hM1(τ)hM2(τ)hMN(τ)]RM×N\mathbf{H}(\tau) = \begin{bmatrix} h_{11}(\tau) & h_{12}(\tau) & \cdots & h_{1N}(\tau) \\ h_{21}(\tau) & h_{22}(\tau) & \cdots & h_{2N}(\tau) \\ \vdots & \vdots & \ddots & \vdots \\ h_{M1}(\tau) & h_{M2}(\tau) & \cdots & h_{MN}(\tau) \end{bmatrix} \in\mathbb{R}^{M\times N}

is called the system’s Continuous OC Impulse-Response Matrix, and the corresponding system is called the Continuous-Time OC Transform System.

  1. H(t)\mathbf{H}(t) is causal. That is, hij(t)=0h_{ij}(t)=0 when t<0t<0, reflecting that the generation of OC traits can depend only on the past states of real-world traits.
  2. Equation the relevant equation shows that the current OC feature vector q(t)\mathbf{q}(t) depends on the entire history of the real-world feature vector r(t)\mathbf{r}(t), and H(τ)\mathbf{H}(\tau) quantifies the influence weight of each historical moment on the present.
  3. Note that the convolution here is a one-dimensional temporal convolution along the time variable tt, not the two-dimensional spatial convolution used in image processing. Two-dimensional convolution usually slides a kernel over the two spatial coordinates of the pixel plane for image filtering, edge detection, and similar tasks; by contrast, Equation the relevant equation describes the accumulated influence across historical time.
  4. For the ii-th component of the output vector q(t)\mathbf{q}(t), we have
qi(t)=[j=1Nhij(τ)rj(tτ)]dτ=j=1Nhij(τ)rj(tτ)dτq_i(t) = \int_{-\infty}^{\infty} \left[ \sum_{j=1}^{N} h_{ij}(\tau) r_j(t-\tau) \right] \mathrm{d}\tau = \sum_{j=1}^{N} \int_{-\infty}^{\infty} h_{ij}(\tau) r_j(t-\tau) \, \mathrm{d}\tau

that is, each output component qi(t)q_i(t) is the superposition of the convolutions between all input components rj(t)r_j(t) and the corresponding impulse-response functions hij(τ)h_{ij}(\tau):

qi(t)=j=1N(hijrj)(t)q_i(t) = \sum_{j=1}^{N} (h_{ij} * r_j)(t)

ss-Domain Description

Since convolution is cumbersome to compute in the time domain, we introduce the Laplace transform to convert time-domain convolution into multiplication in the ss-domain, thereby simplifying description and analysis.

Laplace Transform

For any continuous function f(t)f(t), its Laplace transform (also called the bilateral Laplace transform) is defined by

F~(s)=L{f(t)}=estf(t)dt,s=σ+jω.\tilde{F}(s)=\mathcal{L}\{f(t)\}=\int_{-\infty}^{\infty}\mathrm{e}^{-st}f(t)\,\mathrm{d} t,\quad s=\sigma+\mathrm{j}\omega.
s-Domain Description of the OC Transform

ss Apply the Laplace transform to each element of r(t)\mathbf{r}(t), q(t)\mathbf{q}(t), and H(τ)\mathbf{H}(\tau), and write

R~(s)=L{r(t)},Q~(s)=L{q(t)},H~(s)=L{H(τ)}.\tilde{\mathbf{R}}(s)=\mathcal{L}\{\mathbf{r}(t)\},\quad \tilde{\mathbf{Q}}(s)=\mathcal{L}\{\mathbf{q}(t)\},\quad \tilde{\mathbf{H}}(s)=\mathcal{L}\{\mathbf{H}(\tau)\}.

Then in the ss-domain,

Q~(s)=H~(s)R~(s),\tilde{\mathbf{Q}}(s)=\tilde{\mathbf{H}}(s)\tilde{\mathbf{R}}(s),

where H~(s)\tilde{\mathbf{H}}(s) is called the system’s Continuous OC Transfer-Function Matrix.

To use the ss-domain description of the OC Transform, it is necessary that r(t)\mathbf{r}(t) and H(t)\mathbf{H}(t) themselves be causal and satisfy the convergence conditions of the Laplace transform. If they are not causal, a one-sided Laplace transform will lose signal content and cause an incorrect transform; if the convergence conditions are not satisfied, the Laplace transform is undefined.

For convenience in describing the Laplace transform, we can use a pole-zero plot to represent the properties of the transfer-function matrix H~(s)\tilde{\mathbf{H}}(s).

Pole-Zero Plot

For each element hij(s)h_{ij}(s) of the transfer-function matrix H~(s)\tilde{\mathbf{H}}(s), the zeros are the complex values of ss that make the numerator zero, and the poles are the complex values of ss that make the denominator zero. A pole-zero plot is a diagram showing the locations of zeros and poles in the complex plane.

For the Laplace transform H~(s)\tilde{\mathbf{H}}(s) of the matrix-valued function H(t)\mathbf{H}(t), its pole-zero plot has the following properties:

  1. Pole origin: the poles of H~(s)\tilde{\mathbf{H}}(s) come from the common zeros of the denominators of its elements.

  2. Vertical boundary of the region of convergence: in the complex plane, the ROC is bounded by a vertical line Re(s)=σc\operatorname{Re}(s) = \sigma_c, where σc\sigma_c is the real part of the rightmost pole of H~(s)\tilde{\mathbf{H}}(s).

  3. Region partition: this vertical line divides the complex plane into two regions:

    • Right side (Re(s)>σc\operatorname{Re}(s) > \sigma_c): H~(s)\tilde{\mathbf{H}}(s) converges and is analytic
  • Left side (Re(s)<σc\operatorname{Re}(s) < \sigma_c): H~(s)\tilde{\mathbf{H}}(s) diverges or contains poles
  1. Matrix integrity: the ROC of the entire matrix H~(s)\tilde{\mathbf{H}}(s) is determined by the narrowest ROC among all its elements, namely by the largest real part among all poles.

The pole-zero plot records the poles, zeros, and region of convergence of the OC Transform system. Pole-zero cancellation may affect stability and response characteristics, so the web version retains the qualitative conclusion rather than the illustrative example.

Continuous-Time OC Existence Theorem

Every person inherently possesses a real-world Feature Vector Function r(t)\mathbf{r}(t) and a self-referential OC impulse-response matrix H(t)\mathbf{H}(t). Only when these two objects satisfy the following conditions can a valid OC feature vector q(t)\mathbf{q}(t) actually be generated through convolution; only then do we say that “this person has that OC.”

Continuous-Time OC Existence Theorem

In the OC Transform axiom system of WeiKnight’s worldview, given a person’s r(t)\mathbf{r}(t) and H(t)\mathbf{H}(t), the necessary and sufficient conditions for that person to have the OC are that the following two groups of conditions hold simultaneously:

  1. Adaptability of the Real-World Feature Vector Function: r(t)\mathbf{r}(t) is causal, admits a Laplace transform, and does not cause divergence when acted on by the system. 2. r(t)=0\mathbf{r}(t)=0 for t<0t<0. The equivalent ss-domain statement is that the region of convergence of R~(s)\tilde{\mathbf{R}}(s) contains some right half-plane Re(s)>σr\mathrm{Re}(s)>\sigma_r. 3. The region of convergence of R~(s)\tilde{\mathbf{R}}(s) contains the imaginary axis. This is a necessary condition for ensuring that the real-world character setting does not collapse.
  2. Regularity of the OC Transform System: H(t)\mathbf{H}(t) is causal and stable.
    • Causality: H(t)=0\mathbf{H}(t)=0 for all t<0t<0.
  • Stability: every element hij(t)h_{ij}(t) of H(t)\mathbf{H}(t) is absolutely integrable:
0hij(τ)dτ<,i,j\int_0^\infty |h_{ij}(\tau)| \, \mathrm{d}\tau < \infty, \quad \forall i,j
  • ss-domain necessary statement: the region of convergence of H~(s)\tilde{\mathbf{H}}(s) contains some right half-plane Re(s)>σH\mathrm{Re}(s)>\sigma_{\mathbf{H}} and contains the imaginary axis.
  1. The above “necessary and sufficient conditions” are an internal OC existence criterion within WeiKnight’s worldview, not a complete classification of input-output legitimacy for general LTI systems in real signal-processing theory.
  2. When r(t)\mathbf{r}(t) and H(t)\mathbf{H}(t) satisfy the above conditions, the convolution integral the relevant equation converges and produces a valid OC feature vector q(t)\mathbf{q}(t).
  3. In the ss-domain, there is no equivalent description of causality; causality can only be judged together with the time-domain description. Stability, however, can be described by the ROC of H~(s)\tilde{\mathbf{H}}(s).
  4. The adaptability of the real-world Feature Vector Function r(t)\mathbf{r}(t) ensures that the OC Feature Vector Function q(t)\mathbf{q}(t) does not collapse because of abnormalities in the real-world traits.
  5. The regularity of the OC Transform system ensures that the generation process of the OC Feature Vector Function q(t)\mathbf{q}(t) is stable and does not diverge or become unstable because of abnormalities in the system’s impulse-response matrix H(t)\mathbf{H}(t).
  6. When these conditions are satisfied, the time-domain convolution integral and the Laplace transform can both be changed to one-sided forms, considering only the t>0t>0 portion. That is,
q(t)=0H(τ)r(tτ)dτ\mathbf{q}(t) = \int_0^\infty \mathbf{H}(\tau) \mathbf{r}(t-\tau) \, \mathrm{d}\tau

and the Laplace transform definition can be rewritten as

F~(s)=L{f(t)}=0estf(t)dt,s=σ+jω.\tilde{F}(s)=\mathcal{L}\{f(t)\}=\int_0^\infty\mathrm{e}^{-st}f(t)\,\mathrm{d} t,\quad s=\sigma+\mathrm{j}\omega.
  1. In practical terms: when a Creator is said to “have an OC,” whether or not it is a Self-Insert OC, the above conditions must hold. At that point, an OC Transform can be performed mathematically.
  2. But in WeiKnight’s worldview, only when that OC is a Self-Insert OC is the OC Transform physically realized, meaning that the OC Feature Vector Function q(t)\mathbf{q}(t) generated by the Creator through OC Transform can actually exist in the two-dimensional world.

Continuous-Time Inverse OC Transform and Invertibility

Continuous-Time Invertible OC System

For a Continuous-Time OC Transform system described by a causal, stable transfer-function matrix H~(s)CM×N\tilde{\mathbf{H}}(s) \in \mathbb{C}^{M \times N}, if there exists another causal, stable LTI system G~(s)CN×M\tilde{\mathbf{G}}(s) \in \mathbb{C}^{N \times M} such that within the region of convergence,

G~(s)H~(s)=IN,\tilde{\mathbf{G}}(s) \tilde{\mathbf{H}}(s) = \mathbf{I}_N,

then the original OC Transform system is called invertible, and G~(s)\tilde{\mathbf{G}}(s) is called its inverse system.

Continuous-Time OC Inverse Transform

For an invertible Continuous-Time OC Transform system, its inverse transform is the transformation process realized by the inverse system G~(s)\tilde{\mathbf{G}}(s). In the time domain, this inverse transform is given by the following convolution integral:

r(t)=0G(τ)q(tτ)dτ,\mathbf{r}(t) = \int_{0}^{\infty} \mathbf{G}(\tau) \mathbf{q}(t-\tau) \, \mathrm{d}\tau,

where G(τ)=L1{G~(s)}\mathbf{G}(\tau) = \mathcal{L}^{-1}\{\tilde{\mathbf{G}}(s)\} is the inverse system’s Continuous OC Impulse-Response Matrix. This process can uniquely recover the real-world description r(t)\mathbf{r}(t) from the OC feature vector q(t)\mathbf{q}(t).

Criterion for Existence of the Continuous-Time OC Inverse Transform

In the OC Transform axiom system of WeiKnight’s worldview, for a Continuous-Time OC Transform described by a rational matrix H~(s)CM×N\tilde{\mathbf{H}}(s)\in\mathbb{C}^{M \times N}, a causal, stable left inverse system G~(s)CN×M\tilde{\mathbf{G}}(s)\in\mathbb{C}^{N \times M} exists if and only if the following conditions all hold:

  1. Forward-system property: the original system H~(s)\tilde{\mathbf{H}}(s) itself is causal and stable.
  2. Dimensionality condition: the dimension of the real-world feature space does not exceed the dimension of the OC feature space, that is,
NM.N \leq M.
  1. Column-full-rank condition: the original system H~(s)\tilde{\mathbf{H}}(s) has full column rank in the closed right half-plane, that is,
rank(H~(s))=N,sC and Re(s)0.\operatorname{rank}(\tilde{\mathbf{H}}(s)) = N,\quad \forall s\in\mathbb{C}\ \text{and}\ \operatorname{Re}(s)\geq 0.
  1. Stable left-inverse condition: there exists a rational matrix G~(s)\tilde{\mathbf{G}}(s) satisfying G~(s)H~(s)=IN\tilde{\mathbf{G}}(s)\tilde{\mathbf{H}}(s)=\mathbf{I}_N, and all poles of G~(s)\tilde{\mathbf{G}}(s) lie strictly in the left half-plane:
{sCs is a pole of G~(s)}{sC:Re(s)<0}.\{\,s\in\mathbb{C}\mid s\ \text{is a pole of}\ \tilde{\mathbf{G}}(s)\,\} \subset \{s\in\mathbb{C}:\mathrm{Re}(s)<0\}.
  1. Only when H~(s)\tilde{\mathbf{H}}(s) is causal and stable does the Continuous-Time OC inverse transform make sense.
  2. When N>MN > M, the system is intrinsically compressive, and the higher-dimensional real-world feature cannot be uniquely determined from the lower-dimensional OC feature; in this case, the inverse transform does not exist.
  3. The second and third conditions exclude dimension compression and rank loss in the closed right half-plane, which are necessary constraints for stable inversion.
  4. The fourth condition is an internal realizability axiom of the worldview: if the formal inverse system has poles in the right half-plane, the inverse transform can be written algebraically but cannot be implemented as a stable OC inverse-transform system.
  5. In practical terms: a Creator may designate anything as their own “OC,” even if that “OC” is not a character in the usual sense. When that “OC” satisfies the above criterion, after the Creator transforms into their own “OC,” the real-world features can be uniquely recovered through the inverse transform.
  6. The phrase “if and only if” here is an internal axiomatic criterion of WeiKnight’s worldview; if the model is regarded as a general MIMO LTI system in real control theory, additional system-theoretic analysis is required. This is equivalent to the Creator’s OC being sufficiently distinctive, so that the inverse transform does not cease to exist and the feature map between the Creator and the “OC” remains bidirectional.
  7. Likewise, only when that “OC” is a Self-Insert OC can the OC inverse transform be physically realized.
Construction of the Formal Inverse System

When Theorem the relevant section is satisfied, the inverse system can be constructed as follows, and its belonging to the stable OC inverse-transform class is judged by its pole conditions:

  1. When M=NM = N: the formal inverse system is obtained directly by matrix inversion:
G~(s)=H~(s)1.\tilde{\mathbf{G}}(s) = \tilde{\mathbf{H}}(s)^{-1}.
  1. When M>NM > N: a commonly used formal left inverse is given by the Moore-Penrose pseudoinverse, where ^\dagger denotes conjugate transpose:
G~(s)=H~(s)=(H~(s)H~(s))1H~(s),\tilde{\mathbf{G}}(s)=\tilde{\mathbf{H}}^{\sharp}(s) = \left( \tilde{\mathbf{H}}(s)^\dagger \tilde{\mathbf{H}}(s) \right)^{-1} \tilde{\mathbf{H}}(s)^\dagger,

The pseudoinverse above is a formal construction in the frequency domain. In WeiKnight’s worldview, if the obtained G~(s)\tilde{\mathbf{G}}(s) satisfies the pole condition, then it is defined as an implementable OC inverse-transform system; if not, it is retained only as a formal inversion and does not have stable physical realizability.

Discrete-Time OC Transform

In computer-system implementations, both real-world traits and OC traits appear in the form of discrete sequences, so the Discrete-Time OC Transform is required. In addition, for local transformations of an OC, the discrete model is more suitable.

Time-Domain Description

Time-Domain Description of the Discrete-Time OC Transform

The Discrete-Time OC Transform is still a multi-input multi-output LTI system, whose input-output relation is given by the convolution sum

q[n]=k=H[k]r[nk]=H[n]r[n],\mathbf{q}[n]=\sum_{k=-\infty}^{\infty}\mathbf{H}[k]\mathbf{r}[n-k]=\mathbf{H}[n]*\mathbf{r}[n],

where

H[k]=[h11[k]h12[k]h1N[k]h21[k]h22[k]h2N[k]hM1[k]hM2[k]hMN[k]]\mathbf{H}[k] = \begin{bmatrix} h_{11}[k] & h_{12}[k] & \cdots & h_{1N}[k] \\ h_{21}[k] & h_{22}[k] & \cdots & h_{2N}[k] \\ \vdots & \vdots & \ddots & \vdots \\ h_{M1}[k] & h_{M2}[k] & \cdots & h_{MN}[k] \\ \end{bmatrix}

is the system’s Discrete OC Impulse-Response Matrix, and the corresponding system is called the Discrete-Time OC Transform System.

Equation the relevant equation shows that the current OC feature vector q[n]\mathbf{q}[n] depends on the entire history of the real-world feature vector r[n]\mathbf{r}[n], and H[k]\mathbf{H}[k] quantifies the influence weight of each historical moment on the present. For the ii-th component of the output vector q[n]\mathbf{q}[n], we have

qi[n]=k=[j=1Nhij[k]rj[nk]]=j=1Nk=hij[k]rj[nk]q_i[n] = \sum_{k=-\infty}^{\infty} \left[ \sum_{j=1}^{N} h_{ij}[k] r_j[n-k] \right] = \sum_{j=1}^{N} \sum_{k=-\infty}^{\infty} h_{ij}[k] r_j[n-k]

that is, each output component qi[n]q_i[n] is the superposition of the convolutions between all input components rj[n]r_j[n] and the corresponding discrete impulse-response functions hij[k]h_{ij}[k]:

qi[n]=j=1N(hijrj)[n]q_i[n] = \sum_{j=1}^{N} (h_{ij} * r_j)[n]

zz-Domain Description

As in the continuous-time case, the discrete-time convolution sum is cumbersome to compute in the time domain, so we introduce the ZZ transform to convert time-domain convolution into multiplication in the zz-domain, thereby simplifying description and analysis.

Z Transform

ZZ For any discrete sequence f[n]f[n], its ZZ transform is defined by

F~(z)=Z{f[n]}=n=f[n]zn,z=Aejω.\tilde{F}(z)=\mathcal{Z}\{f[n]\}=\sum_{n=-\infty}^{\infty}f[n]z^{-n},\quad z=A\mathrm{e}^{\mathrm{j}\omega}.
z-Domain Description of the OC Transform

zz Apply the ZZ transform to each element of r[n]\mathbf{r}[n], q[n]\mathbf{q}[n], and H[k]\mathbf{H}[k], and write

R~(z)=Z{r[n]},Q~(z)=Z{q[n]},H~(z)=Z{H[k]}.\tilde{\mathbf{R}}(z)=\mathcal{Z}\{\mathbf{r}[n]\},\quad \tilde{\mathbf{Q}}(z)=\mathcal{Z}\{\mathbf{q}[n]\},\quad \tilde{\mathbf{H}}(z)=\mathcal{Z}\{\mathbf{H}[k]\}.

Then in the zz-domain,

Q~(z)=H~(z)R~(z),\tilde{\mathbf{Q}}(z)=\tilde{\mathbf{H}}(z)\tilde{\mathbf{R}}(z),

where H~(z)\tilde{\mathbf{H}}(z) is called the system’s Discrete OC Transfer-Function Matrix.

Like the continuous-time case, we can use a pole-zero plot to represent the properties of the transfer-function matrix H~(z)\tilde{\mathbf{H}}(z).

Pole-Zero Plot (z Domain)

zz For each element hij(z)h_{ij}(z) of the discrete transfer-function matrix H~(z)\tilde{\mathbf{H}}(z), the zeros are the complex values of zz that make the numerator zero, and the poles are the complex values of zz that make the denominator zero. A pole-zero plot in the zz plane is a diagram showing the positions of these zeros and poles.

For the ZZ transform H~(z)\tilde{\mathbf{H}}(z) of the matrix-valued sequence H[n]\mathbf{H}[n], its pole-zero plot has the following key properties:

  1. Pole origin: the poles of H~(z)\tilde{\mathbf{H}}(z) come from the common zeros of the denominators of its elements.

  2. Circular boundary of the region of convergence: in the zz plane, the ROC is bounded by the circle z=Rc|z| = R_c, where RcR_c is the magnitude of the outermost pole of H~(z)\tilde{\mathbf{H}}(z).

  3. Region partition: this circle divides the zz plane into two regions:

    • Outside the circle (z>Rc|z| > R_c): H~(z)\tilde{\mathbf{H}}(z) converges and is analytic
    • Inside the circle (z<Rc|z| < R_c): H~(z)\tilde{\mathbf{H}}(z) diverges or contains poles
  4. Matrix integrity: the ROC of the entire matrix H~(z)\tilde{\mathbf{H}}(z) is determined by the narrowest ROC among all its elements, namely by the largest pole magnitude among all poles.

The discrete pole-zero plot similarly records poles, zeros, and the circular region of convergence in the zz plane. Pole-zero cancellation and poles close to the unit circle may affect stability and decay behavior, so the web version retains the qualitative conclusion rather than the illustrative example.

Discrete-Time OC Existence Theorem

Every person inherently possesses a real-world Feature Vector Sequence r[n]\mathbf{r}[n] and a self-referential OC impulse-response matrix H[n]\mathbf{H}[n]. Only when these two objects satisfy the following conditions can a valid OC feature vector q[n]\mathbf{q}[n] actually be generated through the convolution sum; only then do we say that “this person has that OC.”

Discrete-Time OC Existence Theorem

In the OC Transform axiom system of WeiKnight’s worldview, given a person’s r[n]\mathbf{r}[n] and H[n]\mathbf{H}[n], the necessary and sufficient conditions for that person to have the OC are that the following two groups of conditions hold simultaneously:

  1. Adaptability of the Real-World Feature Vector Sequence: r[n]\mathbf{r}[n] is causal, admits a ZZ transform, and does not cause divergence when acted on by the system. 2. r[n]=0\mathbf{r}[n]=0 for n<0n<0. The equivalent zz-domain statement is that the region of convergence of R~(z)\tilde{\mathbf{R}}(z) contains some exterior region z>Rr|z|>R_r and contains z=z=\infty. 3. The region of convergence of R~(z)\tilde{\mathbf{R}}(z) contains the unit circle. This is a necessary condition for ensuring that the real-world character setting does not collapse.
  2. Regularity of the OC Transform System: H[n]\mathbf{H}[n] is causal and stable.
    • Causality: H[n]=0\mathbf{H}[n]=0 for all n<0n<0.
  • Stability: every element hij[n]h_{ij}[n] of H[n]\mathbf{H}[n] is absolutely summable:
n=0hij[n]<,i,j\sum_{n=0}^\infty |h_{ij}[n]| < \infty, \quad \forall i,j
  • Equivalent zz-domain statement: the region of convergence of H~(z)\tilde{\mathbf{H}}(z) is some exterior region z>Rmax|z|>R_{\text{max}}, and contains the unit circle z=1|z|=1 and infinity z=z=\infty.
  1. The above “necessary and sufficient conditions” are an internal OC existence criterion within WeiKnight’s worldview, not a complete classification of input-output legitimacy for general LTI systems in real discrete-time signal-processing theory.
  2. Unlike the Continuous-Time OC Transform, the zz-domain description does have an equivalent expression for causality, namely that the ROC contains z=z=\infty.
  3. When these conditions are satisfied, the time-domain convolution sum and the ZZ transform can both be replaced by one-sided forms, namely
q[n]=k=0H[k]r[nk]\mathbf{q}[n] = \sum_{k=0}^{\infty} \mathbf{H}[k] \mathbf{r}[n-k]

and the definition of the ZZ transform can be rewritten as

F~(z)=Z{f[n]}=n=0f[n]zn,z=Aejω.\tilde{F}(z)=\mathcal{Z}\{f[n]\}=\sum_{n=0}^{\infty}f[n]z^{-n},\quad z=A\mathrm{e}^{\mathrm{j}\omega}.

Discrete-Time OC Inverse Transform and Invertibility

Discrete-Time Invertible OC System

For a Discrete-Time OC Transform system described by a causal, stable transfer-function matrix H~(z)CM×N\tilde{\mathbf{H}}(z) \in \mathbb{C}^{M \times N}, if there exists another causal, stable LTI system G~(z)CN×M\tilde{\mathbf{G}}(z) \in \mathbb{C}^{N \times M} such that within the region of convergence,

G~(z)H~(z)=IN,\tilde{\mathbf{G}}(z) \tilde{\mathbf{H}}(z) = \mathbf{I}_N,

then the original OC Transform system is called invertible, and G~(z)\tilde{\mathbf{G}}(z) is called its inverse system.

Discrete-Time OC Inverse Transform

For an invertible Discrete-Time OC Transform system, its inverse transform is the transformation process realized by the inverse system G~(z)\tilde{\mathbf{G}}(z). In the time domain, this inverse transform is given by the following convolution sum:

r[n]=k=0G[k]q[nk],\mathbf{r}[n] = \sum_{k=0}^{\infty} \mathbf{G}[k] \mathbf{q}[n-k],

where G[k]=Z1{G~(z)}\mathbf{G}[k] = \mathcal{Z}^{-1}\{\tilde{\mathbf{G}}(z)\} is the inverse system’s Discrete OC Impulse-Response Matrix. This process can uniquely recover the real-world description r[n]\mathbf{r}[n] from the OC feature vector q[n]\mathbf{q}[n].

Criterion for Existence of the Discrete-Time OC Inverse Transform

In the OC Transform axiom system of WeiKnight’s worldview, for a Discrete-Time OC Transform described by a rational matrix H~(z)CM×N\tilde{\mathbf{H}}(z)\in\mathbb{C}^{M \times N}, a causal, stable left inverse system G~(z)CN×M\tilde{\mathbf{G}}(z)\in\mathbb{C}^{N \times M} exists if and only if the following conditions all hold:

  1. Forward-system property: the original system H~(z)\tilde{\mathbf{H}}(z) itself is causal and stable.
  2. Dimensionality condition: the dimension of the real-world feature space does not exceed the dimension of the OC feature space, that is,
NM.N \leq M.
  1. Full-rank condition: the original system H~(z)\tilde{\mathbf{H}}(z) has full column rank, that is,
rank(H~(z))=N,zC and z1.\operatorname{rank}(\tilde{\mathbf{H}}(z)) = N,\quad \forall z\in\mathbb{C}\ \text{and}\ |z|\geq 1.

An equivalent statement is that the column vectors of H~(z)\tilde{\mathbf{H}}(z) are linearly independent, or equivalently, when H~(z)\tilde{\mathbf{H}}(z) is viewed as a linear map matrix, the corresponding map is injective. 4. Stable left-inverse condition: there exists a rational matrix G~(z)\tilde{\mathbf{G}}(z) satisfying G~(z)H~(z)=IN\tilde{\mathbf{G}}(z)\tilde{\mathbf{H}}(z)=\mathbf{I}_N, and all poles of G~(z)\tilde{\mathbf{G}}(z) lie strictly inside the unit circle:

{zCz is a pole of G~(z)}{zC:z<1}.\{\,z\in\mathbb{C}\mid z\ \text{is a pole of}\ \tilde{\mathbf{G}}(z)\,\} \subset \{z\in\mathbb{C}:|z|<1\}.

The phrase “if and only if” here is an internal axiomatic criterion of WeiKnight’s worldview. If the model is regarded as a general MIMO LTI system in real discrete-time control theory, additional analysis of stable left inverses, zeros, and realizability is still required.

Construction of the Formal Inverse System

When Theorem the relevant section is satisfied, the inverse system can be constructed as follows, and its belonging to the stable OC inverse-transform class is judged by its pole conditions:

  1. When M=NM = N: the formal inverse system is obtained directly by matrix inversion:
G~(z)=H~(z)1.\tilde{\mathbf{G}}(z) = \tilde{\mathbf{H}}(z)^{-1}.
  1. When M>NM > N: a commonly used formal left inverse is given by the Moore-Penrose pseudoinverse, where ^\dagger denotes conjugate transpose:
G~(z)=H~(z)=(H~(z)H~(z))1H~(z),\tilde{\mathbf{G}}(z)=\tilde{\mathbf{H}}^{\sharp}(z) = \left( \tilde{\mathbf{H}}(z)^\dagger \tilde{\mathbf{H}}(z) \right)^{-1} \tilde{\mathbf{H}}(z)^\dagger,

Sampling Theory from Feature Vector Function to Feature Vector Sequence

When a Creator in the real world crosses into the two-dimensional world to become their Self-Insert OC, or when a Self-Insert OC returns from the two-dimensional world to the real world, an OC Transform or inverse transform is required. This process includes:

  1. the transformation from the real-world Feature Vector Function to the OC Feature Vector Function, where the Continuous-Time OC Transform occurs;
  2. the transformation from the OC Feature Vector Function back to the real-world Feature Vector Function, where the Continuous-Time OC inverse transform occurs.

In the process of computing the Continuous-Time OC Transform and inverse transform, manual calculation is obviously impossible. For this reason, OC designers, artists, computer experts, and others jointly design the automatic OC transform machine. The automatic OC transform machine cannot directly process continuous Feature Vector Functions; it can only process discrete Feature Vector Sequences. Therefore, its implementation must combine sampling theory and discretize the Continuous-Time OC Transform into a Discrete-Time OC Transform.

Sampling Process and Spectrum Analysis

Sampling Process of the OC Transform

Uniformly sample the Continuous-Time real-world Feature Vector Function r(t)\mathbf{r}(t) with sampling interval TsT_s to obtain the discrete sequence:

r[n]=r(nTs),nZ\mathbf{r}[n] = \mathbf{r}(nT_s), \quad n \in \mathbb{Z}

Correspondingly, the Continuous OC Impulse-Response Matrix H(t)\mathbf{H}(t) is also discretized as:

H[n]=H(nTs),nZ\mathbf{H}[n] = \mathbf{H}(nT_s), \quad n \in \mathbb{Z}

This uses an idealized impulse-response sampling model. In general, simply setting H[n]=H(nTs)\mathbf{H}[n]=\mathbf{H}(nT_s) does not necessarily yield a discrete-time system exactly equivalent to the original continuous-time system; real engineering implementations also need to consider hold devices, anti-aliasing filters, DACs, and the specific discretization method. The sampling-theorem discussion below concerns the ideal lossless-information case under ideal bandlimiting and ideal reconstruction.

Based on the existence theorem analysis, whether in continuous-time or discrete-time OC Transform, the impulse-response matrix H(t)\mathbf{H}(t) or H[n]\mathbf{H}[n] is stable and has a Fourier transform. Therefore, frequency-domain methods can be used to analyze the sampling process.

Frequency-Domain Relation of the Sampled OC Transform

Suppose the Continuous-Time OC Transform satisfies in the frequency domain:

Q~(jω)=H~(jω)R~(jω)\tilde{\mathbf{Q}}(\mathrm{j}\omega) = \tilde{\mathbf{H}}(\mathrm{j}\omega) \tilde{\mathbf{R}}(\mathrm{j}\omega)

where R~(jω)\tilde{\mathbf{R}}(\mathrm{j}\omega), H~(jω)\tilde{\mathbf{H}}(\mathrm{j}\omega), and Q~(jω)\tilde{\mathbf{Q}}(\mathrm{j}\omega) are the continuous-time Fourier transforms of r(t)\mathbf{r}(t), H(t)\mathbf{H}(t), and q(t)\mathbf{q}(t), respectively.

The sampled discrete-time system satisfies in the frequency domain:

Q~(ejΩ)=1Tsk=H~(Ω+2πkTs)R~(Ω+2πkTs)\tilde{\mathbf{Q}}(\mathrm{e}^{\mathrm{j}\varOmega}) = \dfrac{1}{T_s} \sum_{k=-\infty}^{\infty} \tilde{\mathbf{H}}\left(\dfrac{\varOmega + 2\pi k}{T_s}\right) \tilde{\mathbf{R}}\left(\dfrac{\varOmega + 2\pi k}{T_s}\right)

where Ω=ωTs\varOmega = \omega T_s is the digital angular frequency.

Distortion-Free Sampling Conditions

Distortion-Free Sampling Conditions for the OC Transform

To recover the Continuous-Time OC feature vector q(t)\mathbf{q}(t) without distortion from the discrete OC sequence q[n]\mathbf{q}[n], the following three conditions must all be satisfied simultaneously:

  1. Bandwidth limitation of the real-world description: the real-world Feature Vector Function r(t)\mathbf{r}(t) is band-limited, i.e., there exists ωrmax\omega_r^{\text{max}} such that:
R~(jω)=0,ω>ωrmax\tilde{\mathbf{R}}(\mathrm{j}\omega) = \mathbf{0}, \quad \forall |\omega| > \omega_r^{\text{max}}
  1. Bandwidth limitation of the system: the transfer-function matrix corresponding to the OC impulse-response matrix H(t)\mathbf{H}(t) is band-limited, i.e., there exists ωhmax\omega_h^{\text{max}} such that:
H~(jω)=0,ω>ωhmax\tilde{\mathbf{H}}(\mathrm{j}\omega) = \mathbf{0}, \quad \forall |\omega| > \omega_h^{\text{max}}
  1. Sampling-rate requirement: the sampling frequency ωs=2πTs\displaystyle\omega_s = \dfrac{2\pi}{T_s} satisfies:
ωs>2min(ωrmax,ωhmax)\omega_s > 2 \cdot \min(\omega_r^{\text{max}}, \omega_h^{\text{max}})

To prove the minimum sampling rate required for distortion-free recovery of q(t)\mathbf{q}(t), we analyze the bandwidth of q(t)\mathbf{q}(t).

In the frequency domain, the system output is:

Q(jω)=H(jω)R(jω).\mathbf{Q}(\mathrm{j}\omega) = \mathbf{H}(\mathrm{j}\omega) \mathbf{R}(\mathrm{j}\omega).

We know:

R(jω)=0,ω>ωrmax,H(jω)=0,ω>ωhmax.\begin{aligned} \mathbf{R}(\mathrm{j}\omega) & = \mathbf{0}, \quad \forall |\omega| > \omega_r^{\max}, \\ \mathbf{H}(\mathrm{j}\omega) & = \mathbf{0}, \quad \forall |\omega| > \omega_h^{\max}. \end{aligned}

Consider the value of Q(jω)\mathbf{Q}(\mathrm{j}\omega) for ω>min(ωrmax,ωhmax)|\omega| > \min(\omega_r^{\max}, \omega_h^{\max}). Without loss of generality, assume ωrmaxωhmax\omega_r^{\max} \le \omega_h^{\max}, then when ω>ωrmax|\omega| > \omega_r^{\max} we have R(jω)=0\mathbf{R}(\mathrm{j}\omega) = \mathbf{0}. Therefore, for ω>ωrmax|\omega| > \omega_r^{\max}:

Q(jω)=H(jω)0=0.\mathbf{Q}(\mathrm{j}\omega) = \mathbf{H}(\mathrm{j}\omega) \cdot \mathbf{0} = \mathbf{0}.

Likewise, if ωhmaxωrmax\omega_h^{\max} \le \omega_r^{\max}, then when ω>ωhmax|\omega| > \omega_h^{\max}, H(jω)=0\mathbf{H}(\mathrm{j}\omega) = \mathbf{0}, which also yields Q(jω)=0\mathbf{Q}(\mathrm{j}\omega) = \mathbf{0}.

Hence the bandwidth upper bound of Q(jω)\mathbf{Q}(\mathrm{j}\omega) is:

Bq=min(ωrmax,ωhmax).B_q = \min(\omega_r^{\max}, \omega_h^{\max}).

According to the Nyquist-Shannon sampling theorem, to recover q(t)\mathbf{q}(t) without distortion from the sampled sequence q[n]=q(nTs)\mathbf{q}[n] = \mathbf{q}(nT_s), the sampling frequency must satisfy:

ωs>2Bq=2min(ωrmax,ωhmax).\omega_s > 2 B_q = 2 \min(\omega_r^{\max}, \omega_h^{\max}).

Reconstruction Theory and Ideal Interpolation

Reconstruction of the OC Feature Vector Function

When the above distortion-free sampling conditions are satisfied and the bilateral sampled sequence is known, the OC Feature Vector Function can be perfectly reconstructed from the discrete OC Feature Vector Sequence:

q(t)=n=q[n]sinc(tnTsTs)\mathbf{q}(t) = \sum_{n=-\infty}^{\infty} \mathbf{q}[n] \cdot \text{sinc}\left(\dfrac{t - nT_s}{T_s}\right)

where sinc(x)=sin(πx)πx\text{sinc}(x) = \dfrac{\sin(\pi x)}{\pi x} is the ideal interpolation function.

Under the distortion-free sampling conditions, the continuous-time signal q(t)\mathbf{q}(t) is band-limited, with bandwidth Bq=min(ωrmax,ωhmax)B_q = \min(\omega_r^{\max}, \omega_h^{\max}) satisfying ωs=2π/Ts>2Bq\omega_s = 2\pi/T_s > 2B_q.

Consider the continuous-time Fourier transform of q(t)\mathbf{q}(t):

Q~(jω)=q(t)ejωtdt\tilde{\mathbf{Q}}(\mathrm{j}\omega) = \int_{-\infty}^{\infty} \mathbf{q}(t) \mathrm{e}^{-\mathrm{j}\omega t} \mathrm{d} t

By the bandwidth limitation, we have:

Q~(jω)=0,ω>ωs2\tilde{\mathbf{Q}}(\mathrm{j}\omega) = \mathbf{0}, \quad \forall |\omega| > \dfrac{\omega_s}{2}

Extend Q~(jω)\tilde{\mathbf{Q}}(\mathrm{j}\omega) periodically in the frequency domain with period ωs\omega_s to obtain the periodic spectrum:

Q^(jω)=k=Q~(j(ωkωs))\hat{\mathbf{Q}}(\mathrm{j}\omega) = \sum_{k=-\infty}^{\infty} \tilde{\mathbf{Q}}(\mathrm{j}(\omega - k \omega_s))

Since ωs>2Bq\omega_s > 2B_q, the periodic replicas do not overlap, so no aliasing occurs.

On the other hand, the discrete-time Fourier transform of the sampled sequence q[n]=q(nTs)\mathbf{q}[n] = \mathbf{q}(nT_s) is:

Q~d(ejωTs)=n=q[n]ejωnTs\tilde{\mathbf{Q}}_d(\mathrm{e}^{\mathrm{j}\omega T_s}) = \sum_{n=-\infty}^{\infty} \mathbf{q}[n] \mathrm{e}^{-\mathrm{j}\omega nT_s}

By the sampling theorem, the relation between the discrete and continuous spectra is:

Q~d(ejωTs)=1TsQ^(jω)=1TsQ~(jω),ω<ωs2\tilde{\mathbf{Q}}_d(\mathrm{e}^{\mathrm{j}\omega T_s}) = \dfrac{1}{T_s} \hat{\mathbf{Q}}(\mathrm{j}\omega) = \dfrac{1}{T_s} \tilde{\mathbf{Q}}(\mathrm{j}\omega), \quad |\omega| < \dfrac{\omega_s}{2}

Therefore, in the baseband, the continuous spectrum can be recovered from the discrete spectrum:

Q~(jω)=TsQ~d(ejωTs)rect(ωωs)\tilde{\mathbf{Q}}(\mathrm{j}\omega) = T_s \cdot \tilde{\mathbf{Q}}_d(\mathrm{e}^{\mathrm{j}\omega T_s}) \cdot \mathrm{rect}\left(\dfrac{\omega}{\omega_s}\right)

where rect(u)\mathrm{rect}(u) is the rectangular function, equal to 1 when u<12|u| < \dfrac{1}{2} and 0 otherwise.

Taking the inverse Fourier transform of the above. In the time domain, multiplication in the frequency domain corresponds to convolution in the time domain:

q(t)=F1{TsQ~d(ejωTs)rect(ωωs)}=(n=q[n]δ(tnTs))(Tsωs2πsinc(ωst2π))\begin{aligned} \mathbf{q}(t) & = \mathcal{F}^{-1} \left\{ T_s \cdot \tilde{\mathbf{Q}}_d(\mathrm{e}^{\mathrm{j}\omega T_s}) \cdot \mathrm{rect}\left(\dfrac{\omega}{\omega_s}\right) \right\} \\ & = \left( \sum_{n=-\infty}^{\infty} \mathbf{q}[n] \delta(t - nT_s) \right) * \left( T_s \cdot \dfrac{\omega_s}{2\pi} \cdot \text{sinc}\left(\dfrac{\omega_s t}{2\pi}\right) \right) \end{aligned}

where Tsωs2π=Ts2π/Ts2π=1T_s \cdot \dfrac{\omega_s}{2\pi} = T_s \cdot \dfrac{2\pi/T_s}{2\pi} = 1, and sinc(ωst2π)=sinc(tTs)\text{sinc}\left(\dfrac{\omega_s t}{2\pi}\right) = \text{sinc}\left(\dfrac{t}{T_s}\right).

Hence:

q(t)=n=q[n]δ(tnTs)sinc(tTs)=n=q[n]sinc(tnTsTs)\begin{aligned} \mathbf{q}(t) & = \sum_{n=-\infty}^{\infty} \mathbf{q}[n] \cdot \delta(t - nT_s) * \text{sinc}\left(\dfrac{t}{T_s}\right) \\ & = \sum_{n=-\infty}^{\infty} \mathbf{q}[n] \cdot \text{sinc}\left(\dfrac{t - nT_s}{T_s}\right) \end{aligned}

This is exactly Equation the relevant equation. The proof is complete.

If an actual system stores only the causal truncated sequence for n0n\geq 0, then the bilateral perfect reconstruction in Equation the relevant equation becomes approximate reconstruction; the error is jointly determined by the truncation length, boundary extension method, and anti-aliasing filter.

Meaning of the Sampling Theorem in OC Transform

Completeness from Discrete to Continuous

If the sampling process satisfies the Shannon condition, reconstruction uses ideal sinc interpolation, and the implementation from the continuous system to the discrete system conforms to the idealized sampling model described above, then the discrete OC Transform system and the continuous OC Transform system are equivalent in terms of information:

q(t)samplingq[n]reconstructionq(t)\mathbf{q}(t) \xrightarrow{\text{sampling}} \mathbf{q}[n] \xrightarrow{\text{reconstruction}} \mathbf{q}(t)

That is, the sampling and reconstruction process is lossless in terms of information.

Based on sampling theory, the Continuous-Time OC Transform can be realized by a Discrete-Time system under ideal conditions, provided that:

  1. an appropriate sampling rate ωs\omega_s satisfying the Shannon condition is chosen
  2. an appropriate anti-aliasing filter is designed
  3. an appropriate interpolation method is used for reconstruction This provides the theoretical foundation for the automatic OC transform machine.

Fast OC Transform

From a realistic perspective, no character could have been created infinitely far in the past, nor continue to exist for an infinite amount of time. In actual use of the automatic OC transform machine, the sequences may therefore be uniformly truncated to causal finite-length sequences of length LL:

r[n]RN×1,  H[n]RM×N,  q[n]RM×1,0nL1.\mathbf{r}[n]\in\mathbb{R}^{N\times 1},\; \mathbf{H}[n]\in\mathbb{R}^{M\times N},\; \mathbf{q}[n]\in\mathbb{R}^{M\times 1},\qquad 0\le n\le L-1.

and LL is taken to be a power of 2 (with zero-padding if necessary).

If the convolution sum is computed directly from the definition, the time complexity is O(NML2)O(NML^2). When NN, MM, and LL are large, the computational burden becomes too heavy for real-time processing. For this reason, fast algorithms must be introduced to improve computational efficiency. This is the most important concrete implementation algorithm for OC Transform: the Fast OC Transform.

At this point, the process by which a real-world Creator crosses into the two-dimensional world to become their OC mainly contains the following steps:

  1. the sampling module of the automatic OC transform machine samples and digitizes the Creator’s real-world Feature Vector Function;
  2. the forward-transform module performs the Discrete-Time OC Transform on the real-world Feature Vector Sequence, obtaining the OC Feature Vector Sequence;
  3. the reconstruction module reconstructs the OC Feature Vector Sequence into the OC Feature Vector Function, thereby converting it into the two-dimensional OC character. When returning to the real world is required, the reverse process is as follows: sample the OC Feature Vector Function, use the inverse-transform module to perform the Discrete-Time OC inverse transform and obtain the real-world Feature Vector Sequence, and then reconstruct it into the real-world Feature Vector Function.

The core computation of the Discrete-Time OC Transform consists of N×MN\times M elementwise convolutions, each of length LL. Therefore, improving the computational efficiency of the automatic OC transform machine mainly depends on two points:

  1. Matrix-multiplication acceleration based on modern computer cache principles: optimize memory access patterns to improve the efficiency of matrix multiplication.
  2. FFT-based elementwise convolution acceleration: use the Fast Fourier Transform (FFT) to move convolution computation from the time domain to the frequency domain, greatly reducing computational complexity.

Matrix-Multiplication Acceleration Based on Modern Computer Cache Principles

Matrix multiplication is a core operation in the Discrete-Time OC Transform. Direct matrix multiplication has time complexity O(NM)O(NM) if the cost of convolution is ignored, which is already relatively low; however, in practical computation, the efficiency of matrix multiplication is often limited by memory access patterns and cache hit rate.

Modern computers usually use hierarchical cache structures, such as L1, L2, and L3 caches, to improve memory access efficiency. Optimizing the memory access pattern of matrix multiplication can therefore significantly improve computational performance.

The second snippet processes the inner loop in a more cache-friendly order, improving cache hit rate and accelerating the matrix-multiplication accumulation in the OC Transform. Experiments show that this cache-optimization strategy can bring a certain performance improvement in practical computation, especially when the matrix size is large.

Convolution Acceleration Based on Frequency-Domain Methods

The core of frequency-domain methods is to use the convolution theorem of the Discrete Fourier Transform (DFT), converting computationally expensive time-domain convolution into simple frequency-domain multiplication. This is the key technique for reducing the computational burden of OC Transform.

Discrete Fourier Transform (DFT)

For a discrete sequence of length NfN_f, x[n],  n=0,1,,Nf1x[n],\; n=0,1,\dots,N_f-1, its Discrete Fourier Transform (DFT) X[k]X[k] is defined by:

X[k]=n=0Nf1x[n]ej2πNfkn,k=0,1,,Nf1X[k] = \sum_{n=0}^{N_f-1} x[n] \cdot \mathrm{e}^{-\mathrm{j}\frac{2\pi}{N_f}kn}, \quad k=0,1,\dots,N_f-1

Correspondingly, the inverse discrete Fourier transform (IDFT) is:

x[n]=1Nfk=0Nf1X[k]ej2πNfkn,n=0,1,,Nf1x[n] = \dfrac{1}{N_f} \sum_{k=0}^{N_f-1} X[k] \cdot \mathrm{e}^{\mathrm{j}\frac{2\pi}{N_f}kn}, \quad n=0,1,\dots,N_f-1

For DFT-transformed sequences, the Circular Convolution Theorem can be used to simplify convolution computation.

Circular Convolution Theorem

Let the sequences x~[n]\tilde{x}[n] and h~[n]\tilde{h}[n] both have length NfN_f. Their circular convolution y~[n]\tilde{y}[n] is defined by:

y~[n]=m=0Nf1h~[m]x~[(nm)modNf]\tilde{y}[n] = \sum_{m=0}^{N_f-1} \tilde{h}[m] \tilde{x}[(n-m) \bmod N_f]

Let X~[k]\tilde{X}[k], H~[k]\tilde{H}[k], and Y~[k]\tilde{Y}[k] be the DFTs of the three sequences. Then:

Y~[k]=H~[k]X~[k]\tilde{Y}[k] = \tilde{H}[k] \cdot \tilde{X}[k]

That is, circular convolution in the time domain corresponds to multiplication in the frequency domain.

The convolution theorem is the bridge between time-domain and frequency-domain operations. It states that circular convolution in the time domain is equivalent to pointwise multiplication in the frequency domain. However, OC Transform requires linear convolution, not circular convolution. To use DFT to compute the linear convolution of two causal sequences hij[n]h_{ij}[n] and rj[n]r_j[n] of length LL, zero-padding must be used to avoid aliasing.

DFT-Based Linear Convolution Computation

Suppose hij[n]h_{ij}[n] and rj[n]r_j[n] are causal sequences of length LL. Zero-pad both to length Nf2L1N_f \ge 2L-1 (usually Nf=2LN_f=2L), obtaining h~ij[n]\tilde{h}_{ij}[n] and r~j[n]\tilde{r}_j[n]. Then the first LL samples of the circular convolution of h~ij[n]\tilde{h}_{ij}[n] and r~j[n]\tilde{r}_j[n] are equal to the linear convolution of hij[n]h_{ij}[n] and rj[n]r_j[n].

Based on this theorem, the steps for computing linear convolution with DFT are:

  1. Zero-padding: zero-pad hijh_{ij} and rjr_j to length Nf=2LN_f=2L.
  2. Forward transform: compute their DFTs: Hij[k]=DFT(h~ij)H_{ij}[k]=\mathrm{DFT}(\tilde{h}_{ij}), Rj[k]=DFT(r~j)R_j[k]=\mathrm{DFT}(\tilde{r}_j).
  3. Frequency-domain multiplication: Yij[k]=Hij[k]Rj[k]Y_{ij}[k]=H_{ij}[k]\cdot R_j[k].
  4. Inverse transform: compute the IDFT and take the first LL samples: (hijrj)[n]=IDFT(Yij)[n],  n=0,,L1(h_{ij}*r_j)[n]=\mathrm{IDFT}(Y_{ij})[n],\; n=0,\dots,L-1.

Direct computation of an NfN_f-point DFT has time complexity O(Nf2)O(N_f^2). If this method is used for convolution, the total complexity is O(Nf2)=O(L2)O(N_f^2)=O(L^2), comparable to direct time-domain convolution and therefore not advantageous. For this reason, the Fast Fourier Transform (FFT) is introduced to improve the efficiency of DFT computation.

The Fast Fourier Transform (FFT) is a class of efficient algorithms for computing the DFT. Its core idea is divide and conquer: a large DFT is decomposed into multiple smaller DFTs to reduce the amount of computation.

There are many implementations of FFT, among which the classic Cooley-Tukey algorithm is the most common. When the transform length NfN_f is a power of 2, a radix-2 algorithm can be used, mainly divided into Decimation in Time (DIT) and Decimation in Frequency (DIF).

The DIF form differs from the DIT form mainly in the following ways:

  • Direction of decomposition: DIF first decomposes the DFT output sequence by even and odd indices in the frequency domain, hence the name “Decimation in Frequency.”
  • Butterfly operation: in DIF, multiplication by the twiddle factor occurs on the latter branch of the butterfly operation.
  • Order requirements: DIT requires bit-reversed input and produces natural-order output; DIF requires natural-order input and produces bit-reversed output.

Both algorithms reduce computational complexity from O(Nf2)O(N_f^2) to O(NflogNf)O(N_f\log N_f), and they have the same computational cost and numerical accuracy. In practical applications, either may be chosen according to specific requirements.

Computational Complexity of FFT-Accelerated Linear Convolution

Suppose hij[n]h_{ij}[n] and rj[n]r_j[n] are causal sequences of length LL (zero-padded if necessary to length Nf=2LN_f=2L, with NfN_f a power of 2). The complexity of computing their linear convolution using FFT is:

O(NflogNf)=O(LlogL)O(N_f \log N_f) = O(L \log L)

By contrast, the complexity of direct time-domain convolution is O(L2)O(L^2).

FFT reduces the computational complexity of DFT from O(Nf2)O(N_f^2) to O(NflogNf)O(N_f\log N_f). In the convolution computation described above:

  1. two FFTs, computing Hij[k]H_{ij}[k] and Rj[k]R_j[k], have complexity 2×O(NflogNf)2\times O(N_f\log N_f);
  2. one frequency-domain pointwise multiplication has complexity O(Nf)O(N_f);
  3. one IFFT has complexity O(NflogNf)O(N_f\log N_f). Therefore, the total complexity is O(NflogNf)=O(LlogL)O(N_f\log N_f)=O(L\log L).

In the complete computation of OC Transform, all N×MN\times M channels require separate convolution. Direct time-domain convolution has total complexity O(NML2)O(NML^2), while FFT acceleration reduces the total complexity to:

O(NMLlogL)O(NM\cdot L\log L)

It is worth noting that coefficients in the transform domain can be reused for further optimization in practical implementation:

  • Coefficient precomputation: the Discrete OC Impulse-Response Matrix H\mathbf{H} is usually a fixed system parameter, so all Hij=FFT(hij)H_{ij}=\mathrm{FFT}(h_{ij}) can be computed and stored in advance.
  • Input-transform reuse: for each input channel rjr_j, FFT(rj)\mathrm{FFT}(r_j) only needs to be computed once, and can then be reused by all MM output channels.
  • Parallel computation: the computation of each output channel qiq_i is independent and suitable for parallel processing.

This algorithm significantly reduces the total complexity from O(NML2)O(NML^2) to O(NMLlogL)O(NML\log L). When LL is large, it brings several orders of magnitude of speedup and makes real-time OC Transform possible.

Integrated Optimization Algorithm: Combining Cache Optimization and FFT

In practical applications, to maximize the computational efficiency of OC Transform, cache optimization strategies can be combined with FFT acceleration to form an integrated optimization algorithm. Its core ideas are:

  1. Frequency-domain computation as the main framework: use FFT-based frequency-domain convolution as the main computational paradigm, reducing time complexity from O(NML2)O(NML^2) to O(NMLlogL)O(NML\log L).
  2. Cache-optimized memory access: during the matrix-multiplication accumulation stage, optimize memory access patterns to improve cache hit rate and reduce memory bandwidth bottlenecks.
  3. Parallel-computation architecture: use the parallel computing ability of modern multicore processors to compute multiple output or input channels simultaneously.

While preserving the low time complexity of the FFT algorithm, this integrated algorithm further reduces constant factors by optimizing memory access patterns, allowing practical hardware to approach theoretical peak computational efficiency.

Algorithm Performance Comparison and Analysis

The algorithms can be compared qualitatively by asymptotic complexity, cache behavior, memory layout, and numerical stability.

Interestingly, the “fast” OC Transform algorithm based on the original DFT algorithm is not fast at all. This is because the computational complexity of the DFT is O(Nf2)=O(L2)O(N_f^2)=O(L^2), which is comparable to the O(L2)O(L^2) complexity of direct time-domain convolution, while the DFT also carries a larger constant factor, making it slower in practical applications.

Numerical Experiments and Performance Analysis

Only the conclusions of the numerical experiments are retained here; detailed tables, code listings, and plots are omitted in the web version.

The experimental results lead to the following conclusions:

  1. Computational efficiency has clear levels: algorithm performance is strongly scale-dependent. In small-scale problems (N=4,L=32N=4,L=32), the optimized direct-convolution version performs best; in large-scale problems (N=64,L=2048N=64,L=2048), FFT methods achieve more than 30 times speedup, fully demonstrating the advantage of their O(MNLlogL)O(MNL\log L) complexity.
  2. Cache optimization is significant: comparing the “good_cache” and “bad_cache” versions shows that optimized memory access patterns provide stable performance improvements across different scales.
  3. Numerical accuracy is excellent: all FFT methods have mean absolute errors on the order of 101710^{-17} to 101910^{-19}, showing very high numerical stability.
  4. Algorithm applicability differs by scenario: cache-friendly direct convolution is suitable for small-scale problems (L512L\leq512), FFT methods are advantageous for large-scale problems (L1024L\geq1024), and direct DFT is mainly suitable for theoretical verification.
  5. System stability is verified: in all test cases, the maximum absolute sum is 0.909091, far below 1, satisfying the absolute-summability condition and ensuring BIBO stability of the OC Transform system.
  6. Complexity theory is verified: the measured results are highly consistent with theoretical analysis. As LL grows, direct convolution follows a trend close to O(L2)O(L^2), while FFT methods follow the expected O(LlogL)O(L\log L) trend.

In practical engineering implementation, the performance of FFT methods is highly sensitive to cache utilization and data layout. The tests show that optimizing data access patterns, as in fft_good_cache, provides stable performance improvements at different scales. This gives an important lesson for designers of automatic OC transform machines: the optimal algorithm should be selected dynamically according to problem scale, and modern processor memory hierarchy should be fully considered in implementation.