dimensions

Dimensions of fractals: boxing count, hausdorff, packing in R^n space

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 11:52:24
问题 I would like to calculate dimensions of fractal written as a n-dimensional array of 0s and 1s. It includes boxing count, hausdorff and packing dimension. I have only idea how to code boxing count dimensions (just counting 1's in n-dimensional matrix and then use this formula: boxing_count=-log(v)/log(n); where n-number of 1's and n-space dimension (R^n) This approach simulate counting minimal resolution boxes 1 x 1 x ... x 1 so numerical it is like limit eps->0 . What do you think about this

How to fit a week into a calendar time hierarchy?

限于喜欢 提交于 2019-12-05 19:30:42
As is usual with cubes, the users want things that don't fit into a hierarchy to be displayed hierarchically. They'd like to see Day > Week > Month > Quarter > Year as the hierarchy, but the problem with weeks is they can be part of 1-2 months, not just 1 month (and by extension part of 2 quarters, semesters, years). So my question is: how to set up the attribute relationships, and how to set up the hierarchy? Here is what I have, but I know it's not optimal. Hierarchies (cycle == weeks): Attribute Relationships: There is no Cycle -> Year, because it is a many-to-many relationship There are

Why is sum(X, 1) the sum of the columns in MATLAB?

被刻印的时光 ゝ 提交于 2019-12-05 12:16:22
问题 >> X = [0 1 2 3 4 5] >> sum(X, 1) ans = 3 5 7 sum(X, 1) should sum along the 1st dimension( row ) as per the document says: S = SUM(X,DIM) sums along the dimension DIM. But why does it actually sums along the 2nd dimension( column )? 回答1: In my opinion, it is perfectly consistent with everything else. sum(A,dim) sums along the direction of dimension dim. Rows are counted "down", so sum(A,1) sums "down". Columns are counted "to the right", so sum(A,2) sums "to the right". Another way to look

How to quickly know layer dimensions in Gimp?

萝らか妹 提交于 2019-12-05 10:35:30
Every time I want to know the layer dimensions in Gimp, I open the "Scale layer" dialog to get it. Is there a better way to know this at a glance? May be some configuration option to show it at the bottom/right of the layer name, or in the bottom bar... Maybe this could be a Gimp feature request? Thank you! GIMP does have ways to configure the status bar (on prefences, image windows, title and status) - but there is currently no way to display the layer size - It can be made a feature request - on one hand it is an easy task, and someone starting to trying to collaborate with the project might

How to get the stage dimensions with StageScaleMode.SHOW_ALL?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 01:06:43
问题 If you set the stage.scaleMode to StageScaleMode.SHOW_ALL, your swf may be scaled up or down, and may be padded on the top/bottom or left/right. However, stage.width + height always return the width and height as defined by your swf, and stage.scaleX + Y always return 1. As I understand it, resize events are not thrown. So how do I get the actual scale and dimensions? I want them for two problems: I want to fill that padding on the top/bottom or left/right with something only if the user can

Why is a window larger in runtime?

大兔子大兔子 提交于 2019-12-05 00:28:24
I have a window set to 340 x 146 px, not resizable. In designer the window size is correct. But when I run the application it is bigger. Edit: Also, the layout is Canvas . Classic theme: Edit2: After running snoop (thanks Zach), it appears that actual dimensions are what I specified. But the client area is bigger than one in visual studio. I understand now that the client size stretches, when windows size is fixed to certain dimensions. However I think this makes Canvas layout in window unusable. Edit3: <Window x:Class="TI.Presentation.Views.AutentizationWindow" xmlns="http://schemas.microsoft

Check to see if box fits in another box

心已入冬 提交于 2019-12-04 20:40:11
Given LxWxH of a box A, and LxWxH of a box B, how can I do a simple check to see if A fits in B (with 90 degrees rotations if necessary)? I'm trying to avoid checking all the possible permutations. Thanks. I would check to see if minimum dimension of A < minimum dimension of B && median dimension of A < median dimension of B && maximum dimension of A < maximum dimension of B If those 3 conditions are met, A fits in B. 来源: https://stackoverflow.com/questions/16839489/how-to-check-if-item-lxwxh-fits-in-box-lxwxh

Get Image Dimensions from Url in Python

岁酱吖の 提交于 2019-12-04 16:51:59
I want to get the image dimensions as seen from a viewer on a website. I'm using beautiful soup and I get image links like this: links = soup.findAll('img', {"src":True}) The way I get the image dimensions is by using: link.has_key('height') height = link['height'] and similarly with width as well. However, some links only have one of these attributes. I tried PIL but that gives the actual image size if downloaded. Is there any other way of finding the image dimensions as seen on a website? Tom Rose Your main issue is you are searching the html source for references to height and width. In

Dimensions of fractals: boxing count, hausdorff, packing in R^n space

北战南征 提交于 2019-12-04 16:41:35
I would like to calculate dimensions of fractal written as a n-dimensional array of 0s and 1s. It includes boxing count, hausdorff and packing dimension. I have only idea how to code boxing count dimensions (just counting 1's in n-dimensional matrix and then use this formula: boxing_count=-log(v)/log(n); where n-number of 1's and n-space dimension (R^n) This approach simulate counting minimal resolution boxes 1 x 1 x ... x 1 so numerical it is like limit eps->0 . What do you think about this solution? Do you have any idea (or maybe code) for calculating hausdorff or packing dimension? The

Data warehouse for AD dates

五迷三道 提交于 2019-12-04 14:34:38
问题 We're creating a historic archive for a world history database and we need a date lookup table which references all dates in AD. How to go about creating the values for this table - from 1AD to 2011 as YYYY/MM/DD? Database is MySQL. Problems: I'm using Excel to pre-populate the dates, then import into MySQL as: YYYY/MM/DD but Excel doesn't recognize years like 0007, 0008, etc so I can't auto-copy cells to generate dates. I have to manually do it and this will take days to go from 1AD to year