area

R Venn Diagram package Venerable unavailable - alternative package?

时光毁灭记忆、已成空白 提交于 2019-11-29 12:53:08
I need to plot area proportional Venn Diagrams with at least 5 variables. I tried to install Vennerable package but its just not available anymore. Link to windows build doesn't work (page not found) . Is there an alternative package? The source files, last updated in 2007, are downloadable from Sourceforge as a tar.gz file: http://sourceforge.net/projects/vennerable/files/R%20Source%20package/1.1.1.1/Vennerable_1.1.1.1.tar.gz/download Better yet, what appears to be more updated ( Edit: and broken) source files, last updated in 2009, can be checked out from R-Forge using SVN: svn checkout svn:

Android: How to get the area size of a drawn path?

狂风中的少年 提交于 2019-11-29 11:56:50
My problem is to measure the surface area of a path. I generate a random Path and draw it on a canvas. After touching on this closen path, i want to get the area size of this drawn path. How can i get the real area size of this path? The pathes (shapes) looks like this here: link to the image I found a solution. I generate a Region from the path and use a RegionIterator to get Rects inside the Region. With this Rects i can calculate the whole area of the path. private void calculateArea(Region region) { RegionIterator regionIterator = new RegionIterator(region); int size = 0; // amount of

Get the Surface Area of a Polyhedron (3D object)

房东的猫 提交于 2019-11-29 09:29:40
I have a 3D surface, (think about the xy plane). The plane can be slanted. (think about a slope road). Given a list of 3D coordinates that define the surface( Point3D1X , Point3D1Y , Point3D1Z , Point3D12X , Point3D2Y , Point3D2Z , Point3D3X , Point3D3Y , Point3D3Z , and so on), how to calculate the area of the surface? Note that my question here is analogous to finding area in 2D plane. In 2D plane we have a list of points that defines a polygon, and using this list of points we can find the area of the polygon. Now assuming that all these points have z values in such a way that they are

Using PathIterator to return all line segments that constrain an Area?

谁说胖子不能爱 提交于 2019-11-29 08:32:56
In Java, how would one employ PathIterator to iterate through the line segments that constrain an Area ? The Area is bound only by lines (but curve support wouldn't hurt). The method should return a collection of all the line segments. Peter This works (in all situations, I believe), but it might require more thorough testing: Area area; // The value is set elsewhere in the code ArrayList<double[]> areaPoints = new ArrayList<double[]>(); ArrayList<Line2D.Double> areaSegments = new ArrayList<Line2D.Double>(); double[] coords = new double[6]; for (PathIterator pi = area.getPathIterator(null);

MATLAB fill area between lines

跟風遠走 提交于 2019-11-29 08:32:13
I'm trying to do something similar to what's outlined in this post: MATLAB, Filling in the area between two sets of data, lines in one figure but running into a roadblock. I'm trying to shade the area of a graph that represents the mean +/- standard deviation. The variable definitions are a bit complicated but it boils down to this code, and when plotted without shading, I get the screenshot below: x = linspace(0, 100, 101)'; mean = torqueRnormMean(:,1); meanPlusSTD = torqueRnormMean(:,1) + torqueRnormStd(:,1); meanMinusSTD = torqueRnormMean(:,1) - torqueRnormStd(:,1); plot(x, mean, 'k',

wpf Area Chart with Different Colors?

妖精的绣舞 提交于 2019-11-29 08:11:11
I a musing the MS toolkit charts and cannot figure out how to change the color of the areas. I need to populate the chart dynamically which means I do not know ahead of time how many sections the area chart will have. Here is the code I have. var a = new AreaSeries { Title = "a", IndependentValuePath = "Key", DependentValuePath = "Value", Background = Brushes.Plum }; I have tried to change both the Fore Ground and Background and no dice. mcChart.Series.Add(a); a = new AreaSeries { Title = "b", IndependentValuePath = "Key", DependentValuePath = "Value", Background = Brushes.Peru }; mcChart

Create clickable body diagram with Swift (iOS)

我的梦境 提交于 2019-11-29 07:36:28
I'm trying to recreate something for a iOS app (Swift) which I already made in HTML5 (using map area-coords ). I want to show a human body diagram that interacts with user clicks/touches. The body exists of let's say 20 different parts, and the user can select one or more body-parts. For every body-part there is a selected-state image that should appear when a part is selected. Clicking on a selected part will deselect it. After selecting one or more parts, the user can continue and will get some information about these parts in a next viewcontroller . I am attaching a simplified image to

Android: Measure/detect covered area by a finger touch on screen (NOT only touch coordinates)

£可爱£侵袭症+ 提交于 2019-11-29 06:15:00
I would like to get access to the area covered by a finger for each touch event on an Android. Every touch event will result in a coordinate pair X and Y independent of how big the finger and consequently the touch area is that triggered the event. I was wondering if there is a way to get the area data which triggered the touch event e.g. size or coordinates NOT Any help is much appreciated. Thanks in advance for you answer or redirects, Christian The method motionEvent.getSize() should give you what you want (but the level of accuracy may vary depending on the device's screen). You need to

Calculate the area of a polygon with latitude and longitude

断了今生、忘了曾经 提交于 2019-11-29 05:22:09
I have this code, written using this: source1 and this: source 2 public static double CalculatePolygonArea(IList<GpsLocation> coordinates) { double area = 0; if (coordinates.Count > 2) { for (var i = 0; i < coordinates.Count-1; i++) { GpsLocation p1, p2; p1 = coordinates[i]; p2 = coordinates[i + 1]; area += ToRad(p2.Longitude - p1.Longitude) * (2 + Math.Sin(ToRad(p1.Latitude)) + Math.Sin(ToRad(p2.Latitude))); area = area * R * R / 2; } } return Math.Abs(area); } Here is my test code: [Fact] public void GpsPolygonAreaTest() { var poly = new List<GpsLocation>(); var p1 = new GpsLocation(0, 0);

find smallest area that contains all the rectangles

谁都会走 提交于 2019-11-29 04:03:14
This is an interview question. We are given dimensions of various rectangles, we have to find out the area(minimum) of rectangle that can enclose all of them? rectangles can be rotated also . test case:- input: 3 //number of rectangles 8 8 4 3 3 4 output: 88 11x8: + - - - - - - + + - + | | | | | | | | | | + - + | | + - + | | | | | | | | + - - - - - - + + - + i looked at a similar question asked before fitting rectangles in the smallest possible area the above approach looks at all possibilities ,rotations, and determine the minimum over all such possibilities in all layout cases. can't we base