Ophidian
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
src
density
abu.h
1
/*
2
* Copyright 2016 Ophidian
3
Licensed to the Apache Software Foundation (ASF) under one
4
or more contributor license agreements. See the NOTICE file
5
distributed with this work for additional information
6
regarding copyright ownership. The ASF licenses this file
7
to you under the Apache License, Version 2.0 (the
8
"License"); you may not use this file except in compliance
9
with the License. You may obtain a copy of the License at
10
11
http://www.apache.org/licenses/LICENSE-2.0
12
13
Unless required by applicable law or agreed to in writing,
14
software distributed under the License is distributed on an
15
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
KIND, either express or implied. See the License for the
17
specific language governing permissions and limitations
18
under the License.
19
*/
20
21
#ifndef ophidian_ABU_H
22
#define ophidian_ABU_H
23
24
#include "density_map.h"
25
#include "placement.h"
26
#include "floorplan.h"
27
29
namespace
ophidian {
31
namespace
density {
32
34
38
class
abu
{
39
using
point = geometry::point<double>;
40
41
density_map
m_density;
42
43
point m_bin_dimensions;
44
45
double
measure_abu_for_range(
double
range, std::vector<double> & utilizations,
double
target_utilization);
46
public
:
47
48
abu
(
floorplan::floorplan
* floorplan,
placement::placement
* placement, point bin_dimensions)
49
: m_density(floorplan, placement), m_bin_dimensions(bin_dimensions) {
50
51
}
52
53
~
abu
() { }
54
55
double
measure_abu(
double
target_utilization, std::vector<double> abu_ranges = {0.02, 0.05, 0.1, 0.2}, std::vector<double> abu_weights = {10, 4, 2, 1},
double
bin_area_threshold = 0.2,
double
free_space_threshold = 0.2);
56
};
57
}
58
}
59
60
61
62
#endif //ophidian_ABU_H
ophidian::placement::placement
Placement class.
Definition:
placement.h:35
ophidian::density::abu
ABU, a placement density metric.
Definition:
abu.h:38
ophidian::density::density_map
Definition:
density_map.h:33
ophidian::floorplan::floorplan
Floorplan class.
Definition:
floorplan.h:37
Generated on Wed Jun 1 2016 15:54:18 for Ophidian by
1.8.6