Questions tagged [hierarchical]

For issues relating to arranging data and/or resources in a hierarchy.

A hierarchy is an arrangement of items (objects, names, values, categories, resources, etc.) in which the items are represented as being "above," "below," or "at the same level as" one another. Abstractly, a hierarchy is simply an ordered set or an acyclic directed graph.

A hierarchy can link entities either directly or indirectly, and either vertically or horizontally. The only direct links in a hierarchy, insofar as they are hierarchical, are to one's immediate superior or to one of one's subordinates, although a system that is largely hierarchical can also incorporate alternative hierarchies. Indirect hierarchical links can extend "vertically" upwards or downwards via multiple links in the same direction, following a path. All parts of the hierarchy which are not linked vertically to one another nevertheless can be "horizontally" linked through a path by traveling up the hierarchy to find a common direct or indirect superior, and then down again.

568 questions
2
votes
2 answers

How to write a function that iterates over groups of pandas dataframe and applies hierarchical conditions?

I need to write a function to filter a dataset based on some hierarchical conditions. The purpose of this function is to get one annotation for each protein among a bunch of them. The function needs to do the following, Group the proteins by "id"…
zkrt
  • 49
  • 6
2
votes
1 answer

hierarchic SQL in Oracle

I have huge table with lot of columns so for simplicity I pick up just the relevant ones. There are components and moduls. Component can be used as final product but can be built in another component = modul. the same goes for moduls. One modul can…
Pato
  • 153
  • 6
2
votes
1 answer

Pandas flatten Hierarchical Multi-index

I have a pandas data frame as follows after attempting to flatten it: df = pd.DataFrame(web.DataReader(stocks, 'yahoo', day, day).iloc[0]).unstack(level=0).droplevel(level=0, axis=1) Attributes adjClose close ... volume …
rohan
  • 527
  • 1
  • 6
  • 19
2
votes
1 answer

Display sub subcategories terms list on WooCommerce subcategory archive pages

In Woocommerce I use Get the subcategories of the current product category in Woocommerce archives answer function, to display a list of subcategories on the parent category pages But I only need to apply this to SPECIFIC product-categories though,…
2
votes
0 answers

HCPC and PCA: how to assign supplementary individuals to clusters?

Context: I am trying to 1) define cluster based on certain individuals and 2) assign others individuals to the defined clusters. What has been done: I use FactoMineR functions PCA() and HCPC() according to the workflow described by Husson, F.,…
Paul
  • 2,850
  • 1
  • 12
  • 37
2
votes
1 answer

XML write to relational table grouped by element

I am facing problems rearrange the data within this XML (example and lot similar) to an array. 10010100001361599999 2020-01-03T13:19:18.244+01:00
Manfred
  • 21
  • 4
2
votes
2 answers

Difference caused by placement of PRIOR statement in an Oracle hierarchical query

Seems you can do both the following in Oracle when working with Connect By. CONNECT BY NOCYCLE parent_id = PRIOR child_r_object_id CONNECT BY NOCYCLE PRIOR parent_id = child_r_object_id What is the difference, most examples on line…
smackenzie
  • 2,880
  • 7
  • 46
  • 99
2
votes
2 answers

MySql Loan table, for each borrower find the root lender

I have a Mysql table as shown below: BORROWER Lender 1 2 2 3 3 4 4 NULL 5 NULL 6 7 7 5 I want to get the root lender for every borrower. You can think of root…
mrnakumar
  • 625
  • 6
  • 13
2
votes
1 answer

How can I fix assigning more than one value error in verilog?

Following is an attempt to study verilog hierarchical design. This is the circuit I am implementing: Top Level module for the circuit is: module D_Filiflop_Hierarchal_top_level (clock, reset, i_d, q); input clock; input reset; input…
vt673
  • 127
  • 1
  • 6
2
votes
0 answers

Programmatically create Angular hierarchical injector

I currently use a @Directive with a set of providers to create an isolated injectable set of services/values for any component without it. @Directive({ selector: '[my-isolated-directive]', providers: [MyHierarchicalService] }) export class…
oliverguenther
  • 1,167
  • 1
  • 17
  • 31
2
votes
0 answers

P-adjustment (FDR) on Hierarchical Clustering On Principle Components (HCPC) in R

I'm working right now with "Hierarchical Clustering On Principle Components (HCPC)". In the end of the analysis, p-values are computed by the HCPC function. I searched but I couldn't find any function that could adjust the p-value based on FDR…
2
votes
1 answer

Creating a hierarchical xml structure with ColdFusion

Can someone help me improve on this? There has to be a better way. What I am doing is building a local web service for flex to grab in order to populate a tree menu. Flex being the application I'm calling the web service is just some background…
Robb Hartzog
  • 152
  • 4
2
votes
1 answer

R is not taking the parameter hgap in layout_with_sugiyama

I'm working on R on a graph and I'd like to have a hierarchical plot, based on the values in the vector S (a value for each node). lay2 <- layout_with_sugiyama(grafo, attributes="all", layers = S, hgap=10, vgap=10) plot(lay2$extd_graph,…
2
votes
2 answers

mySQL hierarchical query on codeigniter

I'm havin troubles trying to get the results from this table using slugs. | id | parent | slug | name | ----------------------------------------- | 1 | 0 | animations | animations | | 2 | 1 | flash | flash | | 3…
Sein Kraft
  • 8,417
  • 11
  • 37
  • 39
2
votes
2 answers

Need help to understand the error message

Compiling the code I got the following errors code: #include using namespace std; class a { protected: int a=5; public: a(){cout<<"a c"<