Questions tagged [dimension]

In physics and mathematics, the dimension of a space or object is informally defined as the minimum number of coordinates needed to specify any point within it. In the dimensional modeling, a dimension is a table in a star schema of a data warehouse. It is collection of reference information about measurable event. Dimensions categorize and describe data facts and measures in way that support meaningful answers to business questions.

Dimension table

A dimension is a table in a Star Schema or Snowflake schema of a data warehouse. It is collection of reference information about measurable event. These events are known as facts and stored in a fact table. Dimensions categorize and describe data warehouse facts and measures in way that support meaningful answers to business questions. They form the core of dimensional modeling.

Dimensions provide the "who, what, where, when, why, and how" context surrounding a business process event. Every dimension table has a single primary(surrogate) key. The primary key is embedded as a foreign key in any associated fact table. Dimension tables are usually wide, flat denormalized for analyzing data.

Links

782 questions
3
votes
1 answer

Google custom search API specifiy image dimension

I am doing a google custom search request for image. My request is below https://www.googleapis.com/customsearch/v1?key=key&cx=cx&q=hello&searchType=image&alt=json&start=1 I know I can specify the image size i.e. [huge, icon, large, medium,…
Md. Parvez Alam
  • 4,326
  • 5
  • 48
  • 108
3
votes
1 answer

R Array subsetting: flexible use of drop

As it has been noticed in Subsetting R array: dimension lost when its length is 1 R drops every dimension when subsetting and its length is 1. The drop property helps avoid that. I need a more flexible way to subset : > arr = array(1, dim=…
Smile
  • 63
  • 1
  • 9
3
votes
3 answers

What's the point of setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);?

I was taught to add this to always add this to the run method of jframe, but it doesn't change anything compared to not using it. What I want to know is, what happens when you leave this out? Thanks @Override public void run() { frame = new…
SJ19
  • 1,933
  • 6
  • 35
  • 68
3
votes
2 answers

Partial functions in SML with user data types

I want to create partial functions that enable values of the same unit and dimension to be added and multiplied, so far I've got the following type definitions, I also need to include units conversion. This allows adding values of the same unit but…
3
votes
1 answer

My JFrame always becomes a few pixels too big.

I am working on this game in Java, and I just rewrote all my window related code from being based on java.awt to javax.swing. Soon after, I realized that things were a bit more complicated now, and so i did some research and and found out how to…
3
votes
1 answer

Fragments - onGlobalLayout() called twice

public class QuadPadFragment extends Fragment { int w = 0; int h = 0; public View onCreateView(LayoutInflater inflater, final ViewGroup container, Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.quadpadlayout,…
Axel Stone
  • 1,521
  • 4
  • 23
  • 43
3
votes
1 answer

Clustering in High Dimensions + some basic stuff

I've been studying Support Vector Machines(SVM) for a while, and recently started reading articles on Clustering. When using SVM, we did not need to worry about the dimension size of the data, however, I learned that in clustering, due to the "Curse…
ruparunpa
  • 41
  • 5
3
votes
0 answers

How can I make a dimension a multiple of another dimension?

I was wondering if it is possible to make a dimension a multiple of another dimension in Android. E.g., so I can do something like this: 50dp
Jelle Fresen
  • 1,916
  • 1
  • 20
  • 24
3
votes
4 answers

Segmention fault with sizeof as dimension of string

I'm writing a little program to order a matrix of strings. In the ordination algorithm I use this function to swap two strings, but in same cases the program crashhes with Segmentation Fault Error. I have understood it's caused by how I inizialize…
Vitto
  • 361
  • 3
  • 17
3
votes
2 answers

Facebook Like Box Specify image dimensions

While i'm analyzing my website on gtmetrix i can see that the facebook likebox iframe which i have includes in my website to increase facebook likes the gtmetrix analyse is asking the specify image dimensions. As i can see in the facebook css while…
mstojanov
  • 175
  • 4
  • 17
3
votes
1 answer

Why is my JPanel messing with other components on my JFrame?

So I have a JFrame which contains a JPanel that holds a JList component. Then I have another JPanel for my paintComponent() which also returns a dimension. But when I set the size for the dimension, it tries to relocate my other JPanel. Here is my…
knorberg
  • 462
  • 5
  • 19
3
votes
3 answers

Use a variable as the dimension of an array in C++?

I was just wondering why this works in Clang 4.0: unsigned cnt = 42; int k[cnt]; But this won't: unsigned cnt = 42; string bad[cnt]; I just checked C++ primer 5th edition. It says that: the dimension must be known at compile time, which means…
Hanfei Sun
  • 45,281
  • 39
  • 129
  • 237
3
votes
1 answer

How to group by more than one column in data.table?

I am trying to do some aggregations in a data.table and I am facing one challenge that cannot find the solution for. The challenge is really simple, I would like to summarise some of the values in the data.table along more than one dimension. I…
Jochem
  • 3,295
  • 4
  • 30
  • 55
3
votes
1 answer

numpy array slicing with arbitrary dimension

Say I create an array of arbitrary dimension (n). #assign the dimension >>> n=22 #create the numpy array >>> TheArray=zeros([2]*n) >>> shape(TheArray) (2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2) Have some code (skipped…
user1748155
  • 1,345
  • 1
  • 9
  • 17
3
votes
2 answers

ActivePivot leaf level aggregation and Analysis dimension

lets say I have an ActivePivot cube with facts containing just Value, and Currency. lets say my cube has Currency as a regular dimension. We fill the cube with facts that have many currencies. We have a forex service that takes the currency and…
Hamid
  • 43
  • 5