<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>model/ on SAFER Documentation</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/model/</link><description>Recent content in model/ on SAFER Documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://safer-capstone.pages.dev/developer-docs/api-reference/model/index.xml" rel="self" type="application/rss+xml"/><item><title>inferenceActivity.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/model/inferenceactivity/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/model/inferenceactivity/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module converts a rolling window of raw 3-axis accelerometer samples into a single physical activity intensity value expressed as Counts Per Minute (CPM).&lt;/p&gt;
&lt;p&gt;Its responsibilities include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Slicing the most recent 60-second window of samples from a stream&lt;/li&gt;
&lt;li&gt;Computing a vector magnitude signal from XYZ axes&lt;/li&gt;
&lt;li&gt;Applying a zero-phase bandpass filter (PAL4 coefficients, 0.6–6.2 Hz) to isolate locomotion frequencies&lt;/li&gt;
&lt;li&gt;Segmenting the filtered signal into 30-sample epochs&lt;/li&gt;
&lt;li&gt;Computing mean-removed area-under-the-curve (AUC) per epoch via trapezoidal integration&lt;/li&gt;
&lt;li&gt;Scaling the summed AUC into a CPM value&lt;/li&gt;
&lt;li&gt;Returning &lt;code&gt;null&lt;/code&gt; on insufficient data, filter failures, or non-finite results&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The resulting CPM value is suitable for downstream core temperature inference.&lt;/p&gt;</description></item><item><title>inferenceCoreTemp.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/model/inferencecoretemp/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/model/inferencecoretemp/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module predicts core body temperature (in Celsius) from physiological and environmental inputs using one of several ONNX model variants, with a physics-based fallback for environments where the ONNX runtime is unavailable.&lt;/p&gt;</description></item><item><title>inferenceWGBT.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/model/inferencewgbt/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/model/inferencewgbt/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module computes Wet Bulb Globe Temperature (WBGT) values from meteorological inputs using two XGBoost-derived ONNX models: one predicting Natural Wet Bulb temperature (NWB) and one predicting Globe Temperature (GT).&lt;/p&gt;</description></item><item><title>onnxAsset.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/model/onnxasset/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/model/onnxasset/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module handles the full lifecycle of ONNX model assets in an Expo React Native environment: locating bundled model files, copying them to the device cache directory on first use, and creating reusable &lt;code&gt;InferenceSession&lt;/code&gt; instances.&lt;/p&gt;</description></item><item><title>onnxRuntime.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/model/onnxruntime/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/model/onnxruntime/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module provides safe, lazy access to the &lt;code&gt;onnxruntime-react-native&lt;/code&gt; native module. Because the ONNX runtime requires a native build and is unavailable in Expo Go or stale builds, this module isolates the &lt;code&gt;require()&lt;/code&gt; call, caches the result, and surfaces actionable error messages when the runtime cannot be loaded.&lt;/p&gt;</description></item><item><title>weatherTypes.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/model/weathertypes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/model/weathertypes/</guid><description>&lt;h1 id="purpose"&gt;Purpose&lt;/h1&gt;
&lt;p&gt;This module defines the canonical type for a single normalized weather observation or forecast point used throughout the application.&lt;/p&gt;
&lt;p&gt;It serves as the single source of truth for the weather data shape shared between:&lt;/p&gt;</description></item></channel></rss>