Fast Fourier Transform
This page demonstrates usage of some of the runtime APIs provided by VitePress.
The main useData()
API can be used to access site, theme, and page data for the current page. It works in both .md
and .vue
files:
md
<script setup>
import { useData } from 'vitepress'
const { theme, page, frontmatter } = useData()
</script>
## Results
### Theme Data
<pre>{{ theme }}</pre>
### Page Data
<pre>{{ page }}</pre>
### Page Frontmatter
<pre>{{ frontmatter }}</pre>
Results
Theme Data
{ "search": { "provider": "local" }, "nav": [ { "text": "Home", "link": "/" }, { "text": "Notes", "link": "/markdown-examples" }, { "text": "Syllabus", "link": "/syllabus.md" }, { "text": "Blog", "link": "/markdown-examples" }, { "text": "Gallery", "link": "/markdown-examples" } ], "sidebar": { "/": [ { "text": "Examples", "items": [ { "text": "Markdown Examples", "link": "/markdown-examples" }, { "text": "Runtime API Examples", "link": "/api-examples" } ] }, { "text": "Tech", "items": [ { "text": "This is a test", "link": "/markdown-examples" }, { "text": "Runtime API Examples", "link": "/api-examples" } ] } ], "/syllabus": [], "/cse/": [ { "text": "Syllabus", "items": [ { "text": "Control System Engineering", "link": "/cse/" } ] }, { "text": "1. Introduction", "items": [ { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "Runtime API Examples", "link": "/api-examples" } ] }, { "text": "2. Concept of Stability", "items": [] }, { "text": "3.Frequency-domain Technologies", "items": [ { "text": "DFT Time", "link": "/dsp/dft/api-examples" }, { "text": "DFT Frequency", "link": "/dsp/dft/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" } ] }, { "text": "4. Compensator Design", "items": [] }, { "text": "5. State-space concepts", "items": [] } ], "/dsp/": [ { "text": "Syllabus", "items": [ { "text": "Digital Signal Processing", "link": "/dsp/" } ] }, { "text": "1. DTS and Z-transform", "items": [ { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "Runtime API Examples", "link": "/api-examples" } ] }, { "text": "2. DTFT", "items": [] }, { "text": "3.DFT", "items": [ { "text": "DFT Time", "link": "/dsp/dft/api-examples" }, { "text": "DFT Frequency", "link": "/dsp/dft/" }, { "text": "Fast Fourier Transform", "link": "/dsp/dft/fft" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" } ] }, { "text": "4. IIR Filter Design", "items": [ { "text": "Introduction", "link": "/dsp/iir/" } ] }, { "text": "5. FIR Filter Design", "items": [] } ], "/em/": [ { "text": "Syllabus", "items": [ { "text": "Electric Mobility", "link": "/em/" } ] }, { "text": "1. Intro to EV and HEV", "items": [ { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "Runtime API Examples", "link": "/api-examples" } ] }, { "text": "2. EV", "items": [] }, { "text": "3. Motors and Drives", "items": [ { "text": "Introduction", "link": "/em/mtrad" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" } ] }, { "text": "4. Energy Storage", "items": [ { "text": "Introduction", "link": "/em/es/" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" } ] }, { "text": "5. EV Technologies", "items": [] } ], "/psa/": [ { "text": "Syllabus", "items": [ { "text": "Power System Analysis", "link": "/psa/" } ] }, { "text": "1. Representation of PS components and Load Flow", "items": [ { "text": "Introduction", "link": "/psa/ps_load_flow/" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" } ] }, { "text": "2. Symmetrical Fault Analysis", "items": [ { "text": "Introduction", "link": "/psa/s_fault_anlys/" } ] }, { "text": "3. Unsymmetrical Fault Analysis", "items": [ { "text": "DFT Time", "link": "/dsp/dft/api-examples" }, { "text": "DFT Frequency", "link": "/dsp/dft/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" } ] }, { "text": "4. Power System Stability", "items": [] }, { "text": "5. Load Frequency Control", "items": [] } ], "/sspm/": [ { "text": "Syllabus", "items": [ { "text": "Synchronous and Special Purpose Machines", "link": "/sspm/" } ] }, { "text": "1. 3ph Sync Machines", "items": [ { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "Runtime API Examples", "link": "/api-examples" } ] }, { "text": "2. Vtg regulation and II operation", "items": [] }, { "text": "3. 3ph Sync Motor", "items": [ { "text": "DFT Time", "link": "/dsp/dft/api-examples" }, { "text": "DFT Frequency", "link": "/dsp/dft/markdown-examples" }, { "text": "", "link": "/markdown-examples" }, { "text": "", "link": "/markdown-examples" } ] }, { "text": "4. AC series motor", "items": [] }, { "text": "5. Special Purpose Motors", "items": [] } ] }, "socialLinks": [ { "icon": "github", "link": "https://github.com/MaskinBaba" } ] }
Page Data
{ "title": "Fast Fourier Transform", "description": "", "frontmatter": { "outline": "deep" }, "headers": [], "relativePath": "dsp/dft/fft.md", "filePath": "dsp/dft/fft.md" }
Page Frontmatter
{ "outline": "deep" }
More
Check out the documentation for the full list of runtime APIs.