Questions tagged [decomposition]

Decomposition might refer to Time Series Decomposition. Decomposing a time-series into Seasonal and Trend components can be achieved by using several methods, such as STL (which uses a Loess smoothing algorithm).

Prefer using if applicable.


Time series data can exhibit a variety of patterns, and it is often helpful to split a time series into several components, each representing an underlying pattern category.

There are three types of time series patterns: trend, seasonality and cycles. When we decompose a time series into components, we usually combine the trend and cycle into a single trend-cycle component (often just called the trend for simplicity). Thus we can think of a time series as comprising three components: a trend-cycle component, a seasonal component, and a remainder component (containing anything else in the time series). For some time series (e.g., those that are observed at least daily), there can be more than one seasonal component, corresponding to the different seasonal periods.

345 questions
0
votes
1 answer

Calculate Camera Position from Homography Decomposition

I have a reference image A with a known position and I want to calculate the relative position of the camera at image B (i.e. tx, ty, tz in meters). The images are taken with the same camera so the camera matrix stays the same. I'm using SIFT to…
Oerdy
  • 19
  • 3
0
votes
0 answers

AB →→ C already in fourth normal form

Consider the following set of functional dependencies on the relation schema R = (A, B, C, D, E). Decompose the relation into a collection of relation schemas in 4NF. Provide detailed information of the decomposition process. AB →→ C B → D A → E If…
Nick
  • 47
  • 5
0
votes
1 answer

seasonal decomposition loess daily temperature time series

I have a 10 year daily time series of air temperatures: x <- c(rep((seq(-3,5,by=0.85)),365),NA) I converted it to a time series object like this: x <- ts(x, frequency=10, start=1) and ran stlm stlm(x, s.window=365, robust=TRUE,…
yPennylane
  • 760
  • 1
  • 9
  • 27
0
votes
1 answer

Align 2 sets of 3D points in Unity by using Singular Value Decomposition method (SVD)

I wanted to translate a set of reference points on contour to a set of corresponding target points. There are total 8 points on each contour. In order to calculate the rotation & translation vector, I was using Math.Net Numerics library to perform…
mcmc
  • 11
  • 6
0
votes
1 answer

Efficiently computing a pair(base, exponent) representation of an integer n

I'm having trouble with desiging a method to express an integer n as an integer pair (base, exponent) such that n == base ^ exponent, for an assignment. Below is the contract for the method. @pre specifies what n has to be, @post defines what the…
Ph03n1x
  • 3
  • 2
0
votes
1 answer

Decompose homography matrix to rotation and translation

how can you get the correct R and t from H when you have 4 solutions. From my understanding you can only eliminate two. Is there really no way to get the correct solutions if you only have points on a single plane? Thanks for any help.
0
votes
1 answer

How to extract the slope of a bfast object

I have a question regarding the result from the bfast function in R. Let’s assume I have a time series where no break is detected. library(bfast) library(zoo) NDVI <- as.ts(zoo(som$NDVI.b,som$Time)) NDVI_w <- window(NDVI, c(2001, 4) , c(2008,…
0
votes
0 answers

How to limit the number of coefficients to use in reconstructing a 1D signal using wavelet decomposition in python

I am new in the area of using wavelet decomposition. And I am trying to decompose and reconstruct (with very few coefficients) a 1D data in python (using pywt). From this documentation I wrote the code below which reconstructs the data with 512…
Kela
  • 41
  • 6
0
votes
1 answer

"NA" results in Decomposition of Additive Time Series in R

I'm trying to understand my "decomposition of additive time series" graph. Here's my code: dbs_discs <- ts(RC$Disconnects, frequency =12, start=c(2013,1)) discs_dbs <- decompose(dbs_discs) plot(discs_dbs) discs_dbs and my results: $trend …
Jane Lee
  • 1
  • 4
0
votes
0 answers

Unhandled exception error c++ when using pointer of Objects IloModel and IloObjective::setLinearCoefs?

I am coding a decomposition algorithm including scenario subproblems. I used model pointer to create subproblem optimization models. Then, it is needed to modify the objective function coefficient of each subproblem as the algorithm proceeds. I used…
0
votes
0 answers

Calculating seasonal index from tbats components

I have aggregated retail weekly data with seasonal periods of 52.2 (a 53rd week every five years). I want to use this aggregated data to calculate a seasonal index that can be applied to each item within the category to derive its de-seasonalised…
0
votes
1 answer

Trouble decomposing to 3rd Normal Form (DB)

I've recently started studying Data Bases but I'm struggling with this specific part. I've read the definition of each Normal Form but I still can't seem to understand. Here's an example that I couldn't solve properly: **R(A,B,C,D,E,F)** A->B;…
0
votes
1 answer

Do software engineers in general have no idea about Software Architecture Design?

I need some help from the community - I hope StackOverflow covers general architecture questions. So this is not the first time when co-workers of hundreds-people organizations discuss implementation details of the next 'very complex system', which…
noonex
  • 1,975
  • 1
  • 16
  • 18
0
votes
1 answer

Selecting random word with length-criterion. How to decompose?

This is plan of my game I finished(it works). I want to at the beginning add a difficulty level. Easy is six letter word, medium is seven, and hard is eight or more. Where would it go? Letters = set(string.ascii_lowercase) def main(): words =…
0
votes
1 answer

Functional decomposition advice need in Matlab

I am learning matlab and am practicing functional decomposition. I basically had a long piece of code which worked, but I am trying to break it into smaller pieces with supporting function. I've spent ages debugging it, and have got my first…