area

How do I calculate the partial area under a curve with MATLAB?

不问归期 提交于 2019-12-11 12:55:37
问题 I am a newbie to matlab and trying to find the area under the curve (AUC) for a part of the graph not the entire graph. I am interested to calculate separate AUC from 2 regions; one from -350 to -100 and other from -100 to +150 present on the x axis. how can I calculate AUC for these portion of the graph (not for entire x-axis)? not enough reputation to provide the figure. If someone from the community can provide a matlab code. Every couple of values in the data set correspond to x,y

Add some area in polygon [JavaScript:: Google Map API v3]

落花浮王杯 提交于 2019-12-11 11:51:34
问题 I have some points in database that make polygon on map. i am using Google Map Api v 3 . Now I am trying to add some area in polygon such as I would like to add 100m in every side of polygon and make new one on map along with the original. I tried that but it not make correctly. i add up my code here. Note 100m area is just example value Code $(function() { mapOptions = new Object(); mapOptions.zoom=19; mapOptions.center = new google.maps.LatLng(33.575802425924934, 73.14534723758698);

Plot many countries inside another

跟風遠走 提交于 2019-12-11 11:04:27
问题 I want to show how big Brazilian Amazon Forest is, plotting different countries inside it. Like in this image: To accomplish that, I loaded some shapefiles and changed their projection to one that would keep the areas proportional, like Cylindrical Equal Area: library(rgdal) countries <- readOGR("shp","TM_WORLD_BORDERS-0.3") countries <- spTransform(countries,CRS("+proj=cea")) amzLegal <- readOGR("shp","amazlegal") amzLegal@proj4string <- CRS("+proj=longlat") amzLegal <- spTransform(amzLegal

Batch file multiply positive variables return a negative number

三世轮回 提交于 2019-12-11 06:35:20
问题 I've been working on a Batch polygon area calculator and I got a problem. I need to multiply 2 variables, but sometimes it return a negative number if the two positive variables are large. Here's an example: 999999*999999 returns -729379967 . Code goes below: REM Calc square area :PolySqu Cls Echo Polygon Area Calculator For /L %%P In (1,1,57) Do Echo. Set /P "InputPolygonCalSqu=Enter one of the line's length in cm :" Set /A SquArea=InputPolygonCalSqu * InputPolygonCalSqu Cls Echo Polygon

How do i color the Area below the two curves?

社会主义新天地 提交于 2019-12-11 03:28:06
问题 I have the following combinations of graphs: import pylab as pl import numpy as np def gauss2d(x,sigma): return (1/np.sqrt(2*np.pi*sigma ))*np.exp(-1/2*(x/sigma)**2 ) def markParameters(m,s,textsigma, textmean): p1=gauss2d(s,s) p2=gauss2d(0,s) pl.annotate("", xy=(m-s, p1), xycoords='data', xytext=(m+s, p1), textcoords='data', arrowprops=dict(arrowstyle="<->", connectionstyle="arc3"),) pl.text(m,p1,textsigma,horizontalalignment='center',verticalalignment='top') pl.annotate("", xy=(m, p2*1.1),

calculate area of triangle given 3 user defined points -Beginner

陌路散爱 提交于 2019-12-10 15:28:49
问题 I can get my code to compile, but it doesn't produce the area that is desired. I'm not sure where I have stumbled. They want you to have the user enter 6 coordinates (x and y value) for the 3 points of a triangle and get the area. My code is as follows: import java.util.Scanner; public class AreaTriangle { // find the area of a triangle public static void main (String [] args) { double side1 = 0; double side2 = 0; double side3 = 0; Scanner input = new Scanner(System.in); //obtain three points

How to restrict app usability to a certain geographical area ANDROID

半腔热情 提交于 2019-12-10 14:48:25
问题 I want to define a geographical boundary outside of which, the app will refuse to work. I already know how to do this with a square bound by two lat/long pairs: if ((dLAT.doubleValue() > 35.309171) || (dLAT.doubleValue() < 35.226442) || (dLON.doubleValue() < -92.790165) || (dLON.doubleValue() > -92.707081)) { LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(this); localBroadcastManager.sendBroadcast(new Intent("killapp")); } I also know about geofencing... or

Telephone area code to city name on iOS

与世无争的帅哥 提交于 2019-12-10 14:37:43
问题 On Apple's built-in Voicemail app, when it finds a phone number it does not recognize in your address book, it displays an approximate location under the number, presumably based on the phone number. How did they do that?? I'd guess there's a large database of area codes and exchange numbers on the phone, each mapping to a city or region name. Does anyone know if this mapping is accessible to apps via a public API? There's lots of boilerplate code out there for mapping ZIP code to city, but I

create area in MVC project

蓝咒 提交于 2019-12-10 13:59:42
问题 In an MVC4 web application, what is the best way to create an Area? Can it be automated or is it a manual process of creating the controller, View folder etc? 回答1: Right click on the ASP.NET MVC project in the solution explorer and select Add Area... in the contextual menu. Then type the name of the area and proceed: 来源: https://stackoverflow.com/questions/13779745/create-area-in-mvc-project

how to select the object with the largest area?

我怕爱的太早我们不能终老 提交于 2019-12-10 04:24:57
问题 I have used bwconvhull to detect a certain part of the image, as you can see in the image, there are number of objects with certain centroids. What I want to do is to detect the object with the largest area (1st big one from the left) and neglect the others. Which method should I follow? I will be very thankful for your help. The following is the code (it's very roughly written as I am still working on it. Sorry for any inconvenience in advance) CH_objects = bwconvhull(c,'objects'); imshow(CH