Granularity is the extent to which a material or system is composed of distinguishable pieces or grains. It can either refer to the extent to which a larger entity is subdivided, or the extent to which groups of smaller indistinguishable entities have joined together to become larger distinguishable entities.
Questions tagged [granularity]
63 questions
1
vote
0 answers
Find string, if does not exist, find another string
I have many files from OECD that have data available for different regional granularities. An example would be:
File A
REG_ID Region
AUS Australia
AU1GS Sydney
AU1 New South Wales
AU2 Victoria
AU2GM Melbourne
File B
REG_ID Region
AUS …

stochastiq
- 269
- 3
- 17
1
vote
1 answer
Druid batch indexing inputSpec type granularity, error with "no input paths specified in job"
I'm following the instruction written here: http://druid.io/docs/0.9.2/ingestion/batch-ingestion.html (scroll to "InputSpec specification", look for "granularity").
I have in in my indexing-task JSON:
"inputSpec": {
"type": "granularity",
…

Cokorda Raka
- 4,375
- 6
- 36
- 54
1
vote
2 answers
how to get granularity of existing druid data source
I am working to update existing records in druid by retrieving existing records ,updating and then ingesting back with updated records.
So ,i need to fetch the granularity of existing datasource which will be used while ingesting back the updated…

sidnakoppa
- 111
- 1
- 4
1
vote
1 answer
SSAS cube: force Budget measure granularity drill down to the leaf level of calendar dimention (split Quarter Budget between Monthes, Weeks and Dates)
Our Budget/Plan has Quarter grane, while Fact sales data is stored Dayly. To build Plan-Fact reports for Monthes, Weeks and Dates - I need to split Budget evenly between Calendar dates. How can I do this within a Cube?
After hours of googling I've…

Globe
- 280
- 2
- 15
1
vote
1 answer
Moment.js - Date Granularity
In moment.js, if I write:
moment('1998').format('DD MMM YYYY');
I get 31 Dec 1997. It seems like it rounds the date backwards. I would like to to say 01 Jan 1998.
How can I do this? It doesn't seem to have much documentation for granularity.

dthree
- 19,847
- 14
- 77
- 106
1
vote
3 answers
alignment and word size
I'm confused by alignment requirement and word size. I'm working on a 64-bit processor, so the word size is 8, which means the allocated address should be a multiple of 8, right?
But alignof gives me unexpected results.
struct A
{
int a;
…

user3156285
- 353
- 1
- 3
- 15
1
vote
0 answers
breeze.js security and granularity
(in process of selecting a "today's" stack technology for learning them)
(I do not know well today's technology)
In Breeze.js (MongoDB and MariaDB),
1) Can we define security granularity so the user can not see records that are not related to…

EMHmark7
- 31
- 1
1
vote
1 answer
linux scheduler thread actual sleep time
For my application running under MV Linux I have a thread that has to be active every 10 ms. When I use ulseep/nanosleep/select the thread comes back every 20 ms. Which kernel parameters I have to play with in order to change this…

Rafi
- 161
- 5
1
vote
1 answer
How to determine compute-to-communication ratio
Given a parallel program and a well-defined hardware, how to determine its compute-to-communication ratio (CCR). This is to determine a programs' granularity and subsequent analysis. Literature describes this term and uses it to relate to a…

marc
- 949
- 14
- 33
0
votes
1 answer
why do pipeline constraints of Coarse-grained multithreading and Fine-grained multithreading differ?
In "Computer Organization and Design: The Hardware/
Software Interface, Sixth Edition" RISCV Edition by David A. Patterson and John L. Hennessy chapter 6.4, it says about "coarse-grained multithreading":
This change relieves the need to have…

zg c
- 113
- 1
- 1
- 7
0
votes
0 answers
How to create a custom grid on a Folium Map?
I am quite new to Python and I need to create a custom grid with a specific cell size on a Folium map for a particular district. I have added the Polygon of district boundary on the folium map as shown in the image.
Each grid cell size should be set…

Jawi289p
- 1
- 1
0
votes
0 answers
Fragmentation-Does Anyone know what the alignment of _alloca() is?
So I'm using Windows 10/ 32-bit OS and the compiler is Visual Studio 2022
This is the Code:
(note this code is meant only for learning)
#include
#include
int main() {
int64_t p = (int64_t)_alloca(16);
int64_t o =…

Coffee
- 13
- 3
0
votes
0 answers
Radial distribution function (or correlation) on particles with different size
I am trying to study how uniform the particles distributed in Python, and I am new to this topic.
I found that the radial distribution function may be a good metric to determine how unifrom they distributed.
My questions is, what if the particle…

wayne
- 11
- 4
0
votes
1 answer
tables daily granularity left join monthly granularity
I have a cost_table with columns in BigQuery:
country
start_date_of_campaign
end_date_of_campaign
spend
currency
DE
2022-10-05
2022-10-15
10
EUR
DK
2022-09-07
2022-09-23
20
DKK
After a cross join with date_dimensions table I have a…

Roza Ada
- 1
- 1
0
votes
1 answer
How to aggregate to group level, order and enumerate groups chronologically? (in SQL Server)
Within a hospital encounter, a patient may be administered several different formulations of a medication, as shown here:
Encounter
Medication
Administration
Adm_Num
1
A
8/31/21 11:33 AM
1
1
B
8/31/21 6:25 PM
2
1
C
9/1/21 8:55…

user18612109
- 25
- 5